[Top][All Lists]

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

Re: Problem with VPATH builds and SCRIPTS primary

From: Raphaël Halimi
Subject: Re: Problem with VPATH builds and SCRIPTS primary
Date: Wed, 2 Nov 2016 11:06:36 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0

Hi Peter,

Thanks for your answer.

Just to make sure I understand:

> CLEANFILES += data/.dirstamp
> 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.

> 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).

Are there other pros/cons I didn't see, compared to the creation of the
directory with AC_CONFIG_COMMANDS ?


Raphaël Halimi

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

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