RE: Makefile woes

"Michael J. Lyons (SPACES)" <[email protected]> Tue, 10 May 2005 20:31:36 -0700
Newsgroups gmane.games.devel.windows
Message-ID <338B5D918060C648A143D43714B8FD870402613E@RED-MSG-40.redmond.corp.microsoft.com>
How about:

	md $(SUBDIR) 2> nul

It will print an error to the null device (i.e., do nothing) if it
already exists, but so what?

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
Brett Bibby
Sent: Tuesday, May 10, 2005 7:55 PM
To: [email protected]
Subject: [GD-Windows] Makefile woes

Any makefile experts that can spare a moment? Having problems with
makefiles
on Windows (using GNU make under Cygwin) and can't seem to figure it out
or
even how to google it. 

If anybody can point me to a mailing list or forum that is more
appropriate,
please let me know. All the lists I found so far aren't helpful.

1. I want to check for the existence of a directory, and if it doesn't
exist
create it.

Most of the linux/unix examples do something like:

.PHONY: $(SUBDIR)
$(SUBDIR):
	@[ -d $(SUBDIR) ] || mkdir -p $(SUBDIR)


Obviously the mkdir needs to become md, but it seems to me that the
brackets
and the or'ing are using the shell to test for the directory? I don't
know
shell commands at all and it's frustrating trying to figure out this
stuff.

2. I want to do some printf style debugging beyond the -d makefile
switch.
Something like:

<some makefile commands>
echo "You got here"
<some more makefile commands>

But this doesn't work. What is the way/format to output messages
anywhere
during the make build?

Any help appreciated...

Mr.b



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=555


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_ids93&alloc_id281&op=click
_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_idU5