bug-make
[Top][All Lists]
Advanced

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

[rfe] dontcare for prerequisites


From: Scott McPeak
Subject: [rfe] dontcare for prerequisites
Date: Tue, 20 Nov 2001 19:55:10 -0800 (PST)

Attached is an enhancement I made to make-3.97.1 which adds a new
feature: when a preqrequisite's file name begins with a hyphen, it is
marked dontcare (and the hyphen stripped).  Then during rebuilding, if
that file doesn't exist and can't be remade, 'make' silently proceeds.

This is useful for dependencies in automatically-generated dependency
lists: if a header file gets renamed or deleted, 'make' should not be
bothered by the nonexistence of the file, as long as the dependency info
is regenerated "soon".

More detail is available on a page I put together describing my solution
to the autodependency problem (which I think is superior to the approach
given in the manual):

  http://www.cs.berkeley.edu/~smcpeak/autodepend/autodepend.html

Thanks,

-Scott

Attachment: autodepend.patch
Description: Text document


reply via email to

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