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]" 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: Message-ID: References: User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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 Precedence: bulk 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