Re: make: existence-only prerequisites

2017-02-14 Thread Taylor R Campbell
> Date: Tue, 14 Feb 2017 14:10:53 +0100 > From: Edgar Fuß > > TRC> Traditionally make(1) doesn't handle dependencies on directories very > TRC> well for various reasons > The reasons being? Sorry, I don't remember them all, other than the one you already cited, that adding things to the director

Re: make: existence-only prerequisites

2017-02-14 Thread Edgar Fuß
> What is the scenario you're thinking of that causes gratuitous > command execution later? The directory existing and the stamp absent. I.e. the directory created by someone else.

Re: make: existence-only prerequisites

2017-02-14 Thread J. Lewis Muir
On 02/14, Edgar Fuß wrote: > TRC> and the traditional approach is to use a dummy file in the directory: > TRC> > TRC> foo/.stamp: > TRC> touch foo/.stamp > Which a) creates a file you may have to ignore afterwards and b) updates the > directory's time stamp causing gratuitous command execution l

Re: make: existence-only prerequisites

2017-02-14 Thread Edgar Fuß
DH> I don't remember anything that just checks 'existance' DH> without checking the timestamp. EF> Which, to epeat myself, would be extremely useful, especially for EF> directories EF> (because adding a file means updating the directories mtime, which ...). EF> I always end up with something lik

Re: make: existence-only prerequisites (was: make: order-only prerequisites?)

2017-02-13 Thread Taylor R Campbell
> Date: Mon, 13 Feb 2017 11:58:18 +0100 > From: Edgar Fuß > > > I don't remember anything that just checks 'existance' > > without checking the timestamp. > Which, to epeat myself, would be extremely useful, especially for directories > (because adding a file means updating the directories mtime