nextpnr/ice40/regressions/Makefile
2019-02-07 09:42:34 -08:00

9 lines
233 B
Makefile

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