bugThe nmh Mail Handling System - Bugs: bug #739, makefile needs .PHONY for case...

 
 

bug #739: makefile needs .PHONY for case insensitive file systems

Submitter:  Scott Lipcon <slipcon>
Submitted:  Mon 24 Jun 2002 12:04:08 PM UTC
   
 
Category:  compatibility Severity:  3 - Normal
Priority:  * 5 - Normal Status:  Fixed
Assigned to:  opk Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sun 13 Nov 2005 07:31:44 PM UTC, comment #7: 

Am fixing by adding a dependency on all.

Oliver Kiddle <opk>
Group Member
Wed 09 Nov 2005 06:26:18 PM UTC, comment #6: 

Other phony targets:

all all-recursive install uninstall mostlyclean mostlyclean-recursive mostlyclean-local clean clean-recursive clean-local realclean realclean-recursive realclean-local superclean superclean-recursive superclean-local lint reset nmhdist nmhrelease

Obviously, the only one that's actually clashing with a file is install. So we can go for either the minimal or the maximal fix.

.PHONY is GNU-make only. The info docs recommend:

install uninstall [etc etc]: FORCE
FORCE:

Peter Maydell <pm215>
Group administrator
Wed 09 Nov 2005 10:50:13 AM UTC, comment #5: 

The solution is to make the install target depend on something. The INSTALL file will have an old timestamp so make will want to try to rebuild it.

Currently, `make install' fails if you haven't first done a `make all' so it is useful from that perspective too.

Oliver Kiddle <opk>
Group Member
Thu 03 Nov 2005 03:06:55 PM UTC, comment #4: 

It is a GNU make extension by the way. Would have thought it'd affect most open source software out there but a google search doesn't seem to find much so I'm not sure what the right fix would be.

Anonymous
Mon 30 Jun 2003 10:09:10 PM UTC, comment #3: 

Problem included in bug #3769

Glenn Burkhardt <gbburkhardt>
Group Member
Sun 22 Dec 2002 06:17:14 AM UTC, comment #2: 

This is true for Mac OS 10.2.2 (powerpc-darwin6.2).
I never knew that their file system is case-insensitive ;).

Invalid User ID <#13924>
Thu 19 Dec 2002 09:05:27 PM UTC, comment #1: 

This is true for Mac OS 10.2.2 (powerpc-darwin6.2).
I never knew that their file system is case-insensitive ;).

Invalid User ID <#13924>
Mon 24 Jun 2002 12:04:08 PM UTC, original submission:  

Originally reported by "Jon Stewart" <stew1@ellipsis.cx> to nmh-workers@mhost.com.

On case insenstive file systems, 'make install' is confused by the existence of the INSTALL document, and will report "make: `install' is up to date" instead of installing nmh.  Adding a .PHONY target to the makefile will fix this.

I'm submitting this as a bug for record keeping - it needs to be checked in to CVS.

What other targets need to be in .PHONY, if any?
Does this work on all major make variants, or will we create a dependency on gnu make?


Scott Lipcon <slipcon>
Group Member

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one

Digest:
   bug dependencies.

 

CC list is empty

 

Follow 6 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-11-13 opk CategoryNone compatibility
    StatusDuplicate Fixed
    Assigned toNone opk
    Open/ClosedOpen Closed
2005-11-09 bress Dependencies- bugs #14940 is dependent
2003-06-30 gbburkhardt StatusNone None

Back to the top

Powered by Savane 3.13-758e.
Corresponding source code