[Top][All Lists]

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

Re: Problem with VPATH builds and SCRIPTS primary

From: Peter Johansson
Subject: Re: Problem with VPATH builds and SCRIPTS primary
Date: Thu, 3 Nov 2016 10:23:15 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2

On 11/02/2016 08:06 PM, Raphaël Halimi wrote:
Hi Peter,

Thanks for your answer.

Just to make sure I understand:

CLEANFILES += data/.dirstamp

      @$(MKDIR_P) data
      @: > $@
This creates a directory "data", and then a file ".dirstamp" in this
directory by redirecting the (empty) result of the "true" command to
this file.

Yes, I stole this rule from the rule generated by Automake when it creates files in subdirs.

data/foo.txt: data/.dirstamp
       <some rule>
This creates a file "foo.txt" (in my case it would be a shell script) in
the "data" directory according to a some rule.


Unlike the other solution, this doesn't involve, and so
it's usable with a "pure" automake setup (without autoconf). This is not
the case of my current setup but still, I see this as an advantage, to
clearly separate the "configure" phase and the "make" phase (I'm still
new to autotools).

Yes, I prefer to have the code for this in (rather than; it's the natural place to look when 'make' doesn't work and easier for new developers to understand, imho.


reply via email to

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