> On 30 Jun 2016, at 04:50, Paul Smith wrote:
>
> However, you should generally not have targets depend on directories,
> because make treats them just like any other file when it checks
> modification times; however directories do not act like normal files
> when it comes to modification times.
On Wed, Jun 29, 2016 at 7:53 PM, Paul Smith wrote:
> Not only is there no value in it, it's actually LESS robust to make the
> check because between the time make checks for the directory and the
> time it runs "mkdir", some other program could have created it.
To be painfully precise, the same
On Wed, 2016-06-29 at 20:34 -0400, LMH wrote:
> If you don't mind my asking, how does the above "archdir" solution
> compare with what you suggested as far as defining $(BDIR) as a
> prerequisite for $(BDIR)/SMD2_i386.exe?
> Is there any difference?
It's not good enough to list archdir as a prere
The problem with the $(shell mkdir -p) solution is that it creates the
directory in all cases, notably "make -n" and "make clean". Not exactly
elegant. It's also a wasted process when the directory already exists, it's
mysterious (i.e. you do not see the directory being created) when it didn't
prev
Paul Smith wrote:
On Wed, 2016-06-29 at 14:03 -0400, LMH wrote:
#create build directory if it doesn't exist
$(BDIR):
@mkdir -p $(BDIR)
all: $(BDIR)/SMD2_i386.exe
Here you've created a target $(BDIR), but your "all" target depends
only on the object file $(BDIR)/SMD2_i386.exe.
Since
> From: Paul Smith
> Date: Wed, 29 Jun 2016 14:50:38 -0400
>
> directories do not act like normal files when it comes to
> modification times.
They do on MS-Windows.
___
Help-make mailing list
Help-make@gnu.org
https://lists.gnu.org/mailman/listinfo/h
On Wed, 2016-06-29 at 14:03 -0400, LMH wrote:
> #create build directory if it doesn't exist
> $(BDIR):
> @mkdir -p $(BDIR)
>
> all: $(BDIR)/SMD2_i386.exe
Here you've created a target $(BDIR), but your "all" target depends
only on the object file $(BDIR)/SMD2_i386.exe.
Since nothing depen
Paul Smith wrote:
On Wed, 2016-06-29 at 12:41 -0400, LMH wrote:
Apparently the forum I posted to forwards posts to a mailing list.
The GNU/FSF mailing lists have existed since the 1990's. In that time
various external sites have come along and begun mirroring the mailing
lists, and some of th
On Wed, Jun 29, 2016 at 10:48 AM, Paul Smith wrote:
> On Wed, 2016-06-29 at 12:41 -0400, LMH wrote:
>> Apparently the forum I posted to forwards posts to a mailing list.
>
> The GNU/FSF mailing lists have existed since the 1990's. In that time
> various external sites have come along and begun mi
On Wed, 2016-06-29 at 12:41 -0400, LMH wrote:
> Apparently the forum I posted to forwards posts to a mailing list.
The GNU/FSF mailing lists have existed since the 1990's. In that time
various external sites have come along and begun mirroring the mailing
lists, and some of them also provide the
Yann Droneaud wrote:
Hi,
Le mardi 28 juin 2016 à 09:08 -0700, LMHmedchem a écrit :
View this message in context: http://gnu-make.2324884.n4.nabble.com/c
an-t-always-get-make-to-auto-create-build-directory-tp17226.html
Sent from the Gnu - Make - Help mailing list archive at Nabble.com.
Pleas
Paul Smith wrote:
On Tue, 2016-06-28 at 09:08 -0700, LMHmedchem wrote:
When I run this from "make -f makefile al" I get an error,
Well. You could give us SOME information. Without knowing (a) what
error you get, (b) what your makefile rule looks like, (c) how you're
invoking make, or even (d
Hi,
Le mardi 28 juin 2016 à 09:08 -0700, LMHmedchem a écrit :
>
> View this message in context: http://gnu-make.2324884.n4.nabble.com/c
> an-t-always-get-make-to-auto-create-build-directory-tp17226.html
> Sent from the Gnu - Make - Help mailing list archive at Nabble.com.
>
Please use an email
On Tue, 2016-06-28 at 09:08 -0700, LMHmedchem wrote:
> When I run this from "make -f makefile al" I get an error,
Well. You could give us SOME information. Without knowing (a) what
error you get, (b) what your makefile rule looks like, (c) how you're
invoking make, or even (d) what version of ma
Hello,
I have a make file that gathers some local information and uses it (in
theory) to create a locally named build directory if it doesn't exist.
The test print code prints what I would expect,
When I run this from "make -f makefile al" I get an error,
If I manually create the build dir
15 matches
Mail list logo