On Sun, 2018-10-07 at 01:29 +, Bogdan wrote:
> $(MAKE_DIR)/%.mk: $(SRC_DIR)/%.m4 | $(MAKE_DIR)/$(MODULE); m4 $< $@
> $(MAKE_DIR)/$(MODULE): ; mkdir -p $@
>
> I know MODULE isn't defined at the point of the inclusion; that is
> because I want the macro to expand to the empty string such that th
On Sun, 2018-10-07 at 09:01 -0400, Paul Smith wrote:
> $(MAKE_DIR)/$$(MODULE): ; mkdir -p $@
>
> (note the extra "$" when referencing the MODULE variable)
Actually I'm mistaken here: there's no secondary expansion for targets.
You might be able to write this as:
$(MAKE_DIR)/%.mk: $(SRC_DIR)