bug-make
[Top][All Lists]
Advanced

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

[bug #19113] cannot self-remake makefile starting with './'


From: anonymous
Subject: [bug #19113] cannot self-remake makefile starting with './'
Date: Tue, 20 Feb 2007 20:39:32 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.1) Gecko/20060601 Firefox/2.0.0.1 (Ubuntu-edgy)

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

                 Summary: cannot self-remake makefile starting with './'
                 Project: make
            Submitted by: None
            Submitted on: Tuesday 02/20/2007 at 20:39 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:

for a makefile foo (see attached), the makefile will not be updated before
being run if prefixed with a ./

To duplicate:
 * run the attached foo script from the current directory using "./foo"
 * or run "make -f ./foo"

To see the expected behavior:
 * run "make -f foo"

this was discovered when trying to make a self-executing makefile which
starts with "#!/usr/bin/make -f"

This also happens (not unexpectedly) when running "make -f ./foo"

The bug does not occur, however, when running "make -f foo" (without the
preceding ./)

The bug does also not apply to included makefiles, whether prefixed with ./
or not. All included makefiles appear to be updating correctly. This was
tested by including a (nonexistent) makefile bar which is made as part of the
MAKEFILE_LIST target

The attached makefile uses the MAKEFILE_LIST variable to guarantee that the
target will be the name of the invoked makefile.  the targets foo and ./foo
can also be defined and the bug will still be apparent.

The MAKEFILE_LIST targets were specified as PHONY to guarantee that the
makefile gets updated.

Running on Kubuntu 6.10, GNU Make 3.81, built for x86_64-pc-linux-gnu




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tuesday 02/20/2007 at 20:39 UTC  Name: foo  Size: 0B   By: None

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

    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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