----------------------------------------------------------------------
~/tmp>make --version
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for i686-redhat-linux-gnu
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
        Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

Report bugs to <[EMAIL PROTECTED]>.
----------------------------------------------------------------------


----------------------------------------------------------------------
Consider the following Makefile:
~/tmp>cat Makefile
FOO="This should not be printed"

Makefile: foobar
        @echo Target $@: $(FOO)

foobar:
        @echo Target $@: $(FOO)
        touch foobar
----------------------------------------------------------------------

This first time I run this, it print FOO (as it should):

~/tmp>rm foobar
~/tmp>make
Target foobar: This should not be printed
touch foobar
Target Makefile: This should not be printed
make: `Makefile' is up to date.


Now we get to the bug:

~/tmp>make
Target Makefile: This should not be printed
make: `Makefile' is up to date.

and even:

~/tmp>make -n
Target Makefile: This should not be printed
make: `Makefile' is up to date.

It seems that target `Makefile' is ALWAYS executed.

I think this one is also funny:

~/tmp>rm foobar
~/tmp>make -n
Target foobar: This should not be printed
touch foobar
Target Makefile: This should not be printed
make: `Makefile' is up to date.
~/tmp>ls foobar
foobar

or even

~/tmp>rm foobar
~/tmp>make -n foobar
Target foobar: This should not be printed
touch foobar
Target Makefile: This should not be printed
make: `foobar' is up to date.
~/tmp>ls foobar
foobar

Seems option `-n' doesn't work at all.

-- 
Carlo Wood <[EMAIL PROTECTED]>                        -=- Jesus Loves you -=-

Reply via email to