View Issue Details

IDProjectCategoryView StatusLast Update
0001660Issue 8 draftsShell and Utilitiespublic2024-06-11 09:12
Reportergeoffclare Assigned To 
PrioritynormalSeverityCommentTypeError
Status ClosedResolutionAccepted 
Product VersionDraft 3 
NameGeoff Clare
OrganizationThe Open Group
User Reference
Sectionmake
Page Number3128
Line Number105558
Final Accepted Text
Summary0001660: Out of date make rationale about -n and $(MAKE)
DescriptionBug 0001436 added the requirement that command lines which expand the MAKE macro are still executed when -n is used, and removed some old rationale about this feature, but missed some later rationale that should also have been either removed or changed.
Desired ActionChange:
However, the System V convention of forcing command execution with -n when the command line of a target contains either of the strings "$(MAKE)" or "${MAKE}" has not been adopted. This functionality appeared in early proposals, but the danger of this approach was pointed out with the following example of a portion of a makefile:
subdir:
cd subdir; rm all_the_files; $(MAKE)
The loss of the System V behavior in this case is well-balanced by the safety afforded to other makefiles that were not aware of this situation. In any event, the command line <plus-sign> prefix can provide the desired functionality.
to:
The System V convention of forcing command execution with -n when the command line of a target expands the MAKE macro was not adopted in earlier versions of this standard, but it is now required because it has become widespread existing practice.

Tagsapplied_after_i8d3, issue8

Relationships

related to 0001436 Closed 1003.1(2016/18)/Issue7+TC2 make: add "-j max_jobs" option to support simultaneous rule processing 
has duplicate 0001691 Closed Issue 8 drafts Contradition for -n and ${MAKE} 

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2023-04-06 08:44 geoffclare New Issue
2023-04-06 08:44 geoffclare Name => Geoff Clare
2023-04-06 08:44 geoffclare Organization => The Open Group
2023-04-06 08:44 geoffclare Section => make
2023-04-06 08:44 geoffclare Page Number => 3128
2023-04-06 08:44 geoffclare Line Number => 105558
2023-04-06 08:44 geoffclare Relationship added related to 0001436
2023-05-11 11:00 geoffclare Relationship added related to 0001691
2023-06-05 16:32 Don Cragun Status New => Resolved
2023-06-05 16:32 Don Cragun Resolution Open => Accepted
2023-06-05 16:33 Don Cragun Tag Attached: issue8
2023-06-15 16:08 geoffclare Relationship replaced has duplicate 0001691
2023-06-27 14:58 geoffclare Status Resolved => Applied
2023-06-27 14:59 geoffclare Tag Attached: applied_after_i8d3
2024-06-11 09:12 agadmin Status Applied => Closed