Hi,
Dave Hylands wrote:
...
I would amend that slightly. Certainly for "normal" makefiles this is
the case. But if you have targets which you want remade everytime you
run make, then this is the way to do it.
For example, I typically have a rule like:
FORCE:
.PHONY: FORCE
%.pp : %.c FORCE
...run compiler to produce preprocessor output into .pp file...
I normally use this for debugging macros and other oddities. The %.pp
is never a normal target, but always used explicitly on the command
line ...
... and using 'recursive make', I use the same FORCE target to enforce
recursion like in:
.PHONY: FORCE $(subdirs) clean
clean: FORCE
<tab>{Commands to clean this level...}
FORCE : $(subdirs)
$(subdirs):
<tab>$(MAKE) --directory=$@ ...
At least in part thanks to Paul's hints on his website!
FWIW,
Johan
--
JB Enterprises - Johan Bezem Tel: +49 172 5463210
Software Architect - Project Manager Fax: +49 172 50 5463210
Realtime / Embedded Consultant Email: [EMAIL PROTECTED]
Design - Development - Test - QA Web: http://www.bezem.de
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make