help-make
[Top][All Lists]
Advanced

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

-n option executes commands; bug?


From: gk
Subject: -n option executes commands; bug?
Date: Mon, 23 Jun 2003 12:49:52 -0700

Is this a bug?
Generally, -n option behaves as documented : 'dry-run'; no rules are executed.
However, the following example shows that rule including $(MAKE) -p is executed.

#Makefile
foo:
        @$(MAKE) -p $@ 1>$@

#eof

address@hidden junk]$ ls foo
ls: foo: No such file or directory
address@hidden junk]$ make -n foo
make -p foo 1>foo
address@hidden junk]$ ls foo
foo
address@hidden junk]$

- Greg Keraunen
http://www.xmake.org





reply via email to

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