[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

deleting multiple intermediate files

From: Vance Shipley
Subject: deleting multiple intermediate files
Date: Thu, 14 Oct 2004 15:31:55 -0400
User-agent: Mutt/1.5.1i

I have a target which relies on two intermediate files. Only one of
these gets deleted afterwards.  How can I get the other deleted?


%.a %.b:
        cp $< $*.a
        cp $< $*.b  %.a %.b
        cat $^ > $@

Here is what I get when I try to make the target:

$ make
cp test.a
cp test.b
cat test.a test.b >
rm test.a

I tried adding ".INTERMEDIATE:  %.a %.b" but that had no effect.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]