help-make
[Top][All Lists]
Advanced

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

Re: existence of prerequisite


From: Ken Smith
Subject: Re: existence of prerequisite
Date: Tue, 17 Oct 2006 12:48:45 -0700

I've never needed anything more than order-only prerequisites along these lines.

 http://www.gnu.org/software/make/manual/make.html#Prerequisite-Types

Here's a quick example.

dir/file : | dir/ ; touch $@
dir/ : ; mkdir -p $@

In this case dir/ is an order-only prerequisite of dir/file.  The
timestamp of dir/ isn't considered when updating dir/file, only its
existence.

 Ken

On 10/16/06, Aditya Kher <address@hidden> wrote:
I was looking for something similar to this.
http://savannah.gnu.org/support/?104345

at minimum, a tip on "make-style" existence checking for a
prerequiste, say a directory.

how do i do that?


--
Aditya Kher
http://kher.org


_______________________________________________
Help-make mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/help-make





reply via email to

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