RE: [GD-Windows] Makefile woes
Brought to you by:
vexxed72
From: Michael J. L. \(SPACES\) <ml...@mi...> - 2005-05-11 03:31:54
|
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: gam...@li... [mailto:gam...@li...] On Behalf Of Brett Bibby Sent: Tuesday, May 10, 2005 7:55 PM To: Gam...@li... 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.=20 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=3D7393&alloc_id=3D16281&op=3Dclick _______________________________________________ Gamedevlists-windows mailing list Gam...@li... https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=3D555 |