help-make
[Top][All Lists]
Advanced

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

Oddity with make and % macro


From: Brian J. Murrell
Subject: Oddity with make and % macro
Date: Mon, 26 Mar 2001 01:08:55 -0800
User-agent: Mutt/1.3.15i

Given the Makefile:



doit%: .foo .bar-%
        echo "all done"

.foo: iptables
        touch $@

.bar-%: sysconfig-%
        touch $@



When I run "make doittest" I get the following output:

$ make doittest
touch .bar-test
echo "all done"
all done
rm .bar-test

I am wondering why the "rm .bar-test"?  There is no "rm .foo" so it
must have something to do with the % macro.

If this is not the right way, how can I achieve exactly as above
(flexibility with %) without the "rm .bar-%"?

Thanx,
b.

-- 
Brian J. Murrell



reply via email to

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