Article View: gnu.misc.discuss
Article #63329Recursive make with GNU make
From: Adam Fedor
Date: Fri, 10 Feb 1995 20:01
Date: Fri, 10 Feb 1995 20:01
27 lines
1458 bytes
1458 bytes
I have part of a makefile that looks like this: all:: main debug:: $(MAKE) all CFLAGS="-g -Wall -DDEBUG" There must be a better way to do this, because, every time I say 'make debug' I get a screenful of messages like this: Makefile:113: warning: overriding commands for target `main' Makefile:113: warning: ignoring old commands for target `main' Makefile:116: warning: overriding commands for target `readtest' Makefile:116: warning: ignoring old commands for target `readtest' Even better would be a solution that works with other make's besides GNU make, but it's not that important. Thanks for the help. -- Adam Fedor. CU, Boulder | Fudd's Law of Opposition: Push something fedor@boulder.colorado.edu (W) | hard enough and it will fall over. adam@bastille.rmnug.org (H,NeXTMail)|
Technical Details
Message-ID:
<3hggmu$p3m@lace.Colorado.EDU>Path:
arc1-ca.pugleaf.net!nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!rutgers!csn!boulder!fedorShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1025b4,b2da3ad2e48745f6,start X-Google-Attributes: gid1025b4,public X-Google-ArrivalTime: 1995-02-10 12:01:34 PST Path: arc1-ca.pugleaf.net!nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!rutgers!csn!boulder!fedor From: fedor@hopper.Colorado.EDU (Adam Fedor) Newsgroups: gnu.misc.discuss Subject: Recursive make with GNU make Date: 10 Feb 1995 20:01:34 GMT Organization: University of Colorado, Boulder Lines: 27 Distribution: gnu Message-ID: <3hggmu$p3m@lace.Colorado.EDU> NNTP-Posting-Host: hopper.colorado.edu Originator: fedor@hopper.Colorado.EDU