Build fix: make make less confused about filter-out

It seems the filter-out rules were expanded at different times,
producing different output than when creating the prerequisites. So it
didn't filter them out.

Now we leave the first one out by $< ‒ which must be the same. We leave
the second one in there. But that one is used by the script ‒ we remove
it from listing it explicitly. A bit of a hack, but it seems to work
parent 6aaf2c71
......@@ -3,7 +3,8 @@ LIBRARIES += src/lib/libupdater
$(O)/.gen/src/%.embedlist: $(S)/src/lib/ $(S)/src/lib/embed_types.h
$(M) GEN $@
$(Q)mkdir -p $(dir $@)
$(Q)$< "$(SUFFIX)" $(basename $(notdir $@)) $(S)/src/lib/embed_types.h $(abspath $(filter-out $(S)/src/lib/, $(filter-out $(S)/src/lib/embed_types.h, $^))) >$@
# The filter-out leaves embed_types.h in. But this one is used by the script (not to be embedded, though, it's a different kind of parameter than the rest of them).
$(Q)$< "$(SUFFIX)" $(basename $(notdir $@)) $(abspath $(filter-out $<, $^)) >$@
$(O)/.gen/src/lib/lautoload.embedlist: $(wildcard $(S)/src/lib/autoload/*.lua)
$(O)/.gen/src/lib/lautoload.embedlist: SUFFIX := .lua
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment