bug-make
[Top][All Lists]
Advanced

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

Re: Bug#214592: dry-run of double-colon rules?


From: Manoj Srivastava
Subject: Re: Bug#214592: dry-run of double-colon rules?
Date: Tue, 11 Nov 2003 01:12:48 -0600
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) (i386-pc-linux-gnu)

Hi,
      [Please retain the CC to address@hidden
       so that the Debian Bug Tracking system can record your
       input]

      This has been reported by a debian user.

In some cases, GNU make ignores some double-colon rules when dry-run.

Assumed this Makefile is given

 all: foo.1 foo.2
 foo.1:
         touch foo.1
 foo.2:
         touch foo.2

 install.man:: foo.1
         @echo install foo.1

 install.man:: foo.2
         @echo install foo.2

 install.man::
         @echo install done

I've got the following results

 % make
 touch foo.1
 touch foo.2
 % make -n install.man
 echo install foo.1
 echo install done

I expect "echo install foo.2", but make dry-run shows not to
run "install foo.2".
However, if I run make actually

 % make install.man
 install foo.1
 install foo.2
 install done

"install foo.2" is executed.  Is this an intentional behavior or a bug
of GNU make?

Note that pmake run as I expected

 % pmake -n install.man
 echo install foo.1
 echo install foo.2
 echo install done
 % pmake install.man
 install foo.1
 install foo.2
 install done

I know if I add ".PHONY: install.man" to Makefile, GNU make works as
well, but I experienced this by Makefile generated by xmkmf so that no
PHONY target was defined.

        manoj
-- 
Laetrile is the pits.
Manoj Srivastava   <address@hidden>  <http://www.debian.org/%7Esrivasta/>
1024R/C7261095 print CB D9 F4 12 68 07 E4 05  CC 2D 27 12 1D F5 E8 6E
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C




reply via email to

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