bug-make
[Top][All Lists]
Advanced

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

[bug #33399] Double-colon rules sometimes behave like if they were singl


From: anonymous
Subject: [bug #33399] Double-colon rules sometimes behave like if they were single-colon
Date: Wed, 25 May 2011 11:47:16 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0.1) Gecko/20110516 Firefox/4.0.1

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

                 Summary: Double-colon rules sometimes behave like if they
were single-colon
                 Project: make
            Submitted by: None
            Submitted on: Срд 25 Май 2011 11:47:05
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 3.82
        Operating System: POSIX-Based
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

When target of double-colon rule have characters escaped by backslashes, make
doesn't mark this rule as double-colon.
Simplest example of makefile illustrating the problem is:

a\ b :: ; @echo one
a\ b :: ; @echo two

Output of _make 'a b'_:

Makefile:2: warning: overriding recipe for target `a b'
Makefile:1: warning: ignoring old recipe for target `a b'
two

While the expected output is:

one
two


I'm using GNU Make 3.82 on Gentoo x86_64. Make built from the latest CVS also
has this issue.

After examining the source I made a trivial patch (attached) which fixes this
problem (tested on few projects and as far as I can see it doesn't break
anything).



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Срд 25 Май 2011 11:47:05  Name: double-colon.patch  Size: 339B  
By: None

<http://savannah.gnu.org/bugs/download.php?file_id=23449>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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