kopia lustrzana https://github.com/micropython/micropython
zephyr/Makefile: Make prj_$(BOARD).conf optional, again.
This time hopefully should work reliably, using make $(wildcard) function, which in this case either expands to existing prj_$(BOARD).conf file, or to an empty string for non-existing one.pull/3413/merge
rodzic
a036554a77
commit
b369c1bb96
|
@ -89,8 +89,10 @@ z_clean:
|
||||||
$(MAKE) -f Makefile.zephyr BOARD=$(BOARD) clean
|
$(MAKE) -f Makefile.zephyr BOARD=$(BOARD) clean
|
||||||
|
|
||||||
# This rule is for prj_$(BOARD)_merged.conf, not $(CONF_FILE), which
|
# This rule is for prj_$(BOARD)_merged.conf, not $(CONF_FILE), which
|
||||||
# can be overriden
|
# can be overriden.
|
||||||
prj_$(BOARD)_merged.conf: prj_base.conf prj_$(BOARD).conf
|
# prj_$(BOARD).conf is optional, that's why it's resolved with $(wildcard)
|
||||||
|
# function.
|
||||||
|
prj_$(BOARD)_merged.conf: prj_base.conf $(wildcard prj_$(BOARD).conf)
|
||||||
$(PYTHON) makeprj.py prj_base.conf prj_$(BOARD).conf $@
|
$(PYTHON) makeprj.py prj_base.conf prj_$(BOARD).conf $@
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
|
Ładowanie…
Reference in New Issue