delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to geda-user-bounces using -f |
X-Recipient: | geda-user AT delorie DOT com |
Date: | Sun, 31 Jul 2016 05:09:54 +0200 (CEST) |
X-X-Sender: | igor2 AT igor2priv |
To: | "gene glick (geneglick AT optonline DOT net) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com> |
X-Debug: | to=geda-user AT delorie DOT com from="gedau AT igor2 DOT repo DOT hu" |
From: | gedau AT igor2 DOT repo DOT hu |
Subject: | Re: [geda-user] OT: gnu make |
In-Reply-To: | <CAGBFkM1QBbYbPciu9WFSQzgbR0x-wCYQy7jJTHYB48LAZjPT7w@mail.gmail.com> |
Message-ID: | <alpine.DEB.2.00.1607310506130.7286@igor2priv> |
References: | <CAGBFkM1JhE=L-=pTD4KBU8i6_bsOvvox43KVRjavXji3vhTsJQ AT mail DOT gmail DOT com> <alpine DOT DEB DOT 2 DOT 00 DOT 1607310425290 DOT 7286 AT igor2priv> <CAGBFkM1QBbYbPciu9WFSQzgbR0x-wCYQy7jJTHYB48LAZjPT7w AT mail DOT gmail DOT com> |
User-Agent: | Alpine 2.00 (DEB 1167 2008-08-23) |
MIME-Version: | 1.0 |
Reply-To: | geda-user AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | geda-user AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
On Sat, 30 Jul 2016, gene glick (geneglick AT optonline DOT net) [via geda-user AT delorie DOT com] wrote: >that's precisely what I tried, but it's not working. > >Using DJ's example, if foo.obj is missing, make builds it correctly. Then if >I 'touch' bar.inc, it doesn't rebuild. > >I'm using gnu make 3.81 on windows for this - but I don't windows vs linux >version matters, does it? The complete minimal example I've just tried: ------------------------ all: foo.obj %.obj: %.asm echo "compiled from $<" >$@ foo.obj: foo.asm foo.inc ------------------------ igor2 AT Awake1:/tmp/gnumake$ make echo "compiled from foo.asm" >foo.obj igor2 AT Awake1:/tmp/gnumake$ make make: Nothing to be done for 'all'. igor2 AT Awake1:/tmp/gnumake$ touch foo.inc igor2 AT Awake1:/tmp/gnumake$ make echo "compiled from foo.asm" >foo.obj igor2 AT Awake1:/tmp/gnumake$ touch foo.asm igor2 AT Awake1:/tmp/gnumake$ make echo "compiled from foo.asm" >foo.obj igor2 AT Awake1:/tmp/gnumake$ make make: Nothing to be done for 'all'. igor2 AT Awake1:/tmp/gnumake$ ------------------------ Works as expected. I have 4.0, but this feature is in for ages. Seen GNU make working on windows too, although there are always room for cryptic incompatibilities. Maybe some other part of your Makefile keeps it from executing this rule? Regards, Igor2
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |