help-make
[Top][All Lists]
Advanced

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

Re: immediate/defered variables


From: Der Herr Hofrat
Subject: Re: immediate/defered variables
Date: Sun, 9 Dec 2001 21:14:01 +0100 (CET)

> %% Der Herr Hofrat <address@hidden> writes:
> 
>   dhh> I assume my concept of immediate vs. defered is wrong
> 
> No, you have that right (I assume).
> 
> Your concept of how make handles globbing is incorrect.  Make doesn't
> expand globbing sequences like *.c, it always passes them to the shell
> verbatim.
> 
> The _only_ thing make expands are variables and functions.
>
ok - got that straight now - one more:

---Makefile---
files_a := $(wildcard *.c)
files_b = $(wildcard *.c)

.PHONY: show
show:
        touch junk.c
        @echo $(files_a)
        @echo $(files_b)
        rm -f junk.c
        @echo $(files_a)
        @echo $(files_b)
------
 
So now I'm using functions and variables only but this still will not work
Scanned the Make manual again - but have not found an answer to the question 

Are functions expanded befor execution of any target commands ??
This now will not list junk.c at all ?

thanks
hofrat



reply via email to

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