Re: [fltk.development] Makefile and .phony

2011-01-06 Thread Duncan Gibson
greg: Yes, I've had good luck with that. I've found I can use 'FORCE' in place of .PHONY and it works just as well, eg: foo: FORCE stuff FORCE: ..and I include an extra blank line after the FORCE: because I think old make's would complain. hence the reason

Re: [fltk.development] Makefile and .phony

2011-01-06 Thread Albrecht Schlosser
On 06.01.2011 07:58, Michael Sweet wrote: .PHONY: foo bar is a GNU extension, but fortunately is silently/safely ignored by make programs that do not support it. Thanks to you and all the others that replied. I got some ideas to improve the Makefile. Let's see... Albrecht

[fltk.development] Makefile and .phony

2011-01-05 Thread Albrecht Schlosser
I used .phony in documentation/Makefile to force generation of the doc files manually independent of (not defined) dependencies. I couldn't find another example in our Makefiles and wonder whether this is standard or a GNU make extension. I could not find it on the web. Does anybody know? If

Re: [fltk.development] Makefile and .phony

2011-01-05 Thread stan
I used .phony in documentation/Makefile to force generation of the doc files manually independent of (not defined) dependencies. I couldn't find another example in our Makefiles and wonder whether this is standard or a GNU make extension. I could not find it on the web. Does anybody know?

Re: [fltk.development] Makefile and .phony

2011-01-05 Thread Duncan Gibson
I used .phony in documentation/Makefile to force generation of the doc files manually independent of (not defined) dependencies. I couldn't find another example in our Makefiles and wonder whether this is standard or a GNU make extension. I could not find it on the web. Does anybody know?

Re: [fltk.development] Makefile and .phony

2011-01-05 Thread stan
You can probably get what you want by having a dependency on a file that never exists: always: noSuchFile build always noSuchFile: : # remember that ':' is a dummy command on Unix Right. That works until some wiseguy creates a file called noSuchFile to trip you up. Tricks

Re: [fltk.development] Makefile and .phony

2011-01-05 Thread Albrecht Schlosser
On 05.01.2011 18:28, s...@sjssoftware.com wrote: I used .phony in documentation/Makefile to force generation of the doc files manually independent of (not defined) dependencies. Albrecht, is this what you're looking for? http://www.gnu.org/software/automake/manual/make/Phony-Targets.html

Re: [fltk.development] Makefile and .phony

2011-01-05 Thread Albrecht Schlosser
On 05.01.2011 18:45, Duncan Gibson wrote: You can probably get what you want by having a dependency on a file that never exists: ... Thanks, I partially did this already (see other reply: refman.pdf). To be sure you can always do 'make clean dist', and this ought to work as expected.

Re: [fltk.development] Makefile and .phony

2011-01-05 Thread stan
[..] In any case, using it should be pretty harmless. It will work as intended if the feature is supported; if not, it will do the right thing unless the user has a file called .phony lying around. Hmm, sounds good. However it's not the file .phony, but the real target (in this case

Re: [fltk.development] Makefile and .phony

2011-01-05 Thread Greg Ercolano
s...@sjssoftware.com wrote: Yes, reading more carefully I see I may have misled you. If you only use the .PHONY label there may be problems with non-GNU make. Try this though: foo: .PHONY build foo .PHONY: I'm pretty sure that leads GNU make to build foo no matter what, and make's

Re: [fltk.development] Makefile and .phony

2011-01-05 Thread Michael Sweet
On Jan 5, 2011, at 6:17 AM, Albrecht Schlosser wrote: I used .phony in documentation/Makefile to force generation of the doc files manually independent of (not defined) dependencies. I couldn't find another example in our Makefiles and wonder whether this is standard or a GNU make