Hi,
I am new to this forum and I am new to GNU Make.
I am confused in the following code hilighted as BOLD:

MY_VAR = $(wildcard *.foo) 
TEST_VAR = $(shell ls *.foo)

define MY_VAR2 
        @echo "MY_VAR" $(1) $(MY_VAR)
        @echo "TEST_VAR" $(1) $(TEST_VAR)
endef 

foo: create_files 
        $(call MY_VAR2, ls)
        @rm -f *.foo 

create_files: 
        @touch foo.foo 
        @touch bar.foo

My question is: call is a make built in function and not a bash command. How
than it is being executed by shell? I am sorry for this stupid question as I
am quite new to GNU MAKE. Can some one make me clear?
-- 
View this message in context: 
http://old.nabble.com/Executing-Recipe-tp32454061p32454061.html
Sent from the Gnu - Make - Help mailing list archive at Nabble.com.


_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to