[Top][All Lists]

[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: Gecko/20060728 Firefox/


                 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



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

       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:


  Message sent via/by Savannah

reply via email to

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