Hi all,
I have a base Makefile that calls sub makefiles.
In the base file there is the following part:
assert_target_dir=$(assert_target_dir_cmd)
define assert_target_dir_cmd
mkdir -p /home/user/target$(1)
endef
export assert_target_dir assert_target_dir_cmd
install:
$(call assert_target_dir,/sbin)
+ make -f Makefile.install
in Makefile.install:
.PHONY: all
all:
$(call assert_target_dir,/etc)
[...]
What happens when I call make install:
mkdir -p /home/user/target/sbin
make -f Makefile.install
mkdir -p /home/user/target
^^ here is /etc missing!
so basically the funtion gets "exported" but it seems to be not possible to
give a parameter with the $(call ...)
What's wrong here? Am I doing something wrong? or is it not possible to
define and export functions in such way?
Any ideas how to solve my issue?
Thanks a lot!
Best regards,
Erik
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make