blob: f723b04fc1025be9834eeb85f7f162c4da4d9053 (
plain)
1
2
3
4
5
6
7
8
|
NPNR = ../../nextpnr-ice40
JSON = $(wildcard */*.json)
OUTPUT = $(patsubst %.json,%.log,$(JSON))
all: $(NPNR) $(OUTPUT)
%.log: %.json $(wildcard %.pcf)
$(NPNR) --json $(word 1,$^) $(if $(word 2,$^), --pcf $(word 2,$^),) > $@ 2>&1
|