bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

$(wildcard) bug or feature?


From: Hans O. Lowe
Subject: $(wildcard) bug or feature?
Date: Sun, 20 Apr 2003 15:50:55 -0500

Howdy,

Using GNU Make 3.80, with this Makefile:

------------------------------------------------------------
foo:
        touch 1.k 2.k

bar:    foo
        @echo $(wildcard *.k)

clean:
        rm 1.k 2.k
------------------------------------------------------------

1> make clean
rm 1.k 2.k
2> make bar
touch 1.k 2.k

3> make bar
touch 1.k 2.k
1.k 2.k

Shouldn't $(wildcard) expand only after the target `foo' has been
made? Therefore, shouldn't both the second and third commands above
give the same output?

Thanks!





reply via email to

[Prev in Thread] Current Thread [Next in Thread]