Doug <[EMAIL PROTECTED]> wrote:
> Is there a way with GNU make to specify a dependency on the existence
> of a directory while ignoring the timestamp of the directory?
>
> Specifically, say I have the following makefile:
>
> default: myfile
> myfile: mydir
> touch mydir/myfile
> mydir:
> mkdir -p mydir
The following will avoid your problem:
myfile: $(filter-out $(wildcard mydir), mydir)
touch mydir/myfile
Above, you will onldy depend on mydir if the directory does not exist.
regards Henrik
--
The address in the header is only to prevent spam. My real address is:
hc1(at)poolhem.se Examples of addresses which go to spammers:
[EMAIL PROTECTED] [EMAIL PROTECTED]