Allow multiple source files for bluespec make snippet

This commit is contained in:
Oshgnacknak 2022-11-17 09:57:26 +01:00
parent 5ece7eea5e
commit 9171be99fa
Signed by: Oshgnacknak
GPG key ID: 8CB7375654585956

View file

@ -17,9 +17,11 @@ $1: $1.cpp
endsnippet
snippet bsv
SRC := $(wildcard *.bsv)
$1: $1.bo
bsc -u -sim -e mk$1 -o $@
$1.bo: $1.bsv
$1.bo: $1.bsv $(SRC)
bsc -u -sim -g mk$1 $<
endsnippet