Hi,
I'm using GNU make 3.80 on Windows, but am having some
issues with Dynamic Rules. This is probably down to
my own misunderstanding, but consider the following
(contrived! I do have a reason for trying this :-))
example:
ALL : TEST
define test-rule
$(1)/%.o : %.c
@echo test-rule
@echo Arg 1 : $(1)
@echo Target : $@
@echo Dependent : $<
endef
TEST : bin/File.o
bin/File.o : File.c
$(eval $(call test-rule,bin))
Now...this gives the following output, with a File.c
in the cwd:
test-rule
Arg 1 : bin
Target :
Dependent :
Which leads me to believe the rule is created
correctly and invoked as you'd expect, but why are $<
and $@ empty?
Thanks,
Jon.
___________________________________________________________
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail
http://uk.messenger.yahoo.com
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make