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

 
 

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

Submitted by:  Scott Lipcon <slipcon>
Submitted on:  Mon 24 Jun 2002 12:04:08 PM UTC  
 
Category: compatibilitySeverity: 3 - Normal
Priority: 5 - NormalStatus: Fixed
Assigned to: Oliver Kiddle <opk>Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

Am fixing by adding a dependency on all.

Oliver Kiddle <opk>
Project MemberIn charge of this item.
Wed 09 Nov 2005 06:26:18 PM UTC, comment #4:

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>
Project Administrator
Wed 09 Nov 2005 10:50:13 AM UTC, comment #3:

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>
Project MemberIn charge of this item.
Thu 03 Nov 2005 03:06:55 PM UTC, comment #2:

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 #1:

Problem included in bug #3769

Glenn Burkhardt <gbburkhardt>
Project Member
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>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

CC list is empty

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 6 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sun 13 Nov 2005 07:31:44 PM UTCopkCategoryNone=>compatibility
  StatusDuplicate=>Fixed
  Assigned toNone=>opk
  Open/ClosedOpen=>Closed
Wed 09 Nov 2005 12:29:56 PM UTCbressDependencies-=>bugs #14940 is dependent
Mon 30 Jun 2003 10:09:09 PM UTCgbburkhardtStatusNone=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1