bug-make
[Top][All Lists]
Advanced

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

[bug #22442] Old-style cancelation of implicit rules


From: anonymous
Subject: [bug #22442] Old-style cancelation of implicit rules
Date: Fri, 29 Feb 2008 01:09:59 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6

URL:
  <http://savannah.gnu.org/bugs/?22442>

                 Summary: Old-style cancelation of implicit rules
                 Project: make
            Submitted by: None
            Submitted on: Friday 02/29/2008 at 01:09 UTC
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 3.81
        Operating System: POSIX-Based
           Fixed Release: None

    _______________________________________________________

Details:

I'd like to write portable makefiles that avoid the "%"
mechanism, but this leaves me no way of cancelling implicit
rules.  According to POSIX, it should be possible to cancel
a rule be writing something like

rule:  ;

But in gnu make version 3.81, this only results in changing
rule so that it does nothing.  For example if I want to 
control how C++ gets compiled and linked I define

.cc.o:
       My compile command

.o :
       My link command

But in the special case where there is only one .cc file
needed to make an executable the default ".cc" rule kicks
in and bypasses my commands.





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?22442>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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