In one of my included Makefiles is a rule for %.kt_rfgw
. When i first compile, there is No rule to make target
and it failed. But when i do make a second time without any changes it will find the rules except the webserver doesn't need to rebuild.
Makefile:
TARGET:=kt_rfgw
all: webserver gateway
webserver:
...doing stuff...
gateway: $(CONTIKI_PROJECT).$(TARGET)
...doing stuff...
In a Makefile.Include:
$(warning Rule: "%.kt_rfgw:" found)%.$(TARGET): %.co $(PROJECT_OBJECTFILES) $(PROJECT_LIBRARIES) contiki-$(TARGET).a
...doing stuff...
Error-Message when do make first time:
/c/...path.../Makefile.include:316: Rule: "%.kt_rfgw:" found
...
make[1]: *** No rule to make target `regelfern.kt_rfgw', needed by `gateway'. Stop.
No-Message when do make first time:
/c/...path.../Makefile.include:316: Rule: "%.kt_rfgw:" found
...
...compiling...
%.kt_rfgw
. Ideally strip out all the unnecessary stuff and create a minimal, complete and verifiable example. – l0b0$(TARGET)
is%.kt_rfgw
, sorry – Chrisgateway
needs a file which will created by the targetwebserver
. But only at the very beginng the rules where checked for the targetgateway
. Is it possible to check again before starting the second target? – Chris