[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Making multiple action lines from a varaible
From: |
Paul Smith |
Subject: |
RE: Making multiple action lines from a varaible |
Date: |
Wed, 01 Aug 2007 18:56:59 -0400 |
On Wed, 2007-08-01 at 14:30 -0500, EXT-Pennington, Dale K wrote:
> > > phony-clean-%:
> > > gmake -f $* clean
> > >
> > > phony-all-%:
> > > gmake -f $* all
> > >
> > > .PHONY: $(CLEANTARGERS) $(ALLTARGETS)
> > >
>
> When we declared the CLEANTARGETS and ALLTARGETS as phoney, they no
> longer check them against the implicit rules (per online manual section
> 4.6). Once I comment out the .PHONY line all works well.
Another alternative is to use the old-style FORCE rules, like:
phony-clean-%: .FORCE
....
.FORCE:
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist