bugmake - Bugs: bug #19113, cannot self-remake makefile...

 
 

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

Submitter:  None
Submitted:  Tue 20 Feb 2007 08:39:29 PM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  3.81 Operating System:  POSIX-Based
Fixed Release:  3.82 Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 24 Dec 2021 04:19:44 PM UTC, comment #2: 

This appears to have been fixed in GNU make 3.82 but this issue didn't get closed.

Paul D. Smith <psmith>
Group administrator
  Spam posted by anonymous
Tue 20 Feb 2007 08:39:29 PM UTC, original submission:  

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

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #12022:  foo added by None (201B - application/octet-stream - this is the correct one)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by psmith (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-12-24 psmith StatusNone Fixed
        Open/ClosedOpen Closed
        Fixed ReleaseNone 3.82
    2007-02-20 None Attached File- Added foo, #12022
    2007-02-20 None Attached File- Added foo, #12021

    Back to the top

    Powered by Savane 3.14-0608.
    Corresponding source code