Re: CVS commit: src/usr.bin/make

2013-03-05 Thread Alan Barrett

On Tue, 05 Mar 2013, Christos Zoulas wrote:

Modified Files:
src/usr.bin/make: dir.c job.c job.h make.1 parse.c

Log Message:
Add a .STALE special target that gets invoked when dependency files contain
stail entries.


Please discuss this sort of thing first.  There may be a way to 
solve the underlying problem without adding a new special target, 
such as using the newish "meta mode".  Also, a better name than 
".STALE" might have been suggested.


--apb (Alan Barrett)


Re: CVS commit: src/usr.bin/make

2013-03-05 Thread Christos Zoulas
In article ,
Masao Uebayashi   wrote:
>-=-=-=-=-=-
>
>I like make(1) to exit when stale depend is found.

I was thinking of adding a .STALE target, so you can do what you like,
for example:

.STALE:
rm -f ${.ALLSRC}
${MAKE} depend

christos



Re: CVS commit: src/usr.bin/make

2013-03-05 Thread Masao Uebayashi
I like make(1) to exit when stale depend is found.

On Tue, Mar 5, 2013 at 11:04 AM, Christos Zoulas wrote:

> Module Name:src
> Committed By:   christos
> Date:   Tue Mar  5 02:04:11 UTC 2013
>
> Modified Files:
> src/usr.bin/make: dir.c job.c parse.c
>
> Log Message:
> Keep track of the location where a dependency is defined, so we can report
> about it.
>
>
> To generate a diff of this commit:
> cvs rdiff -u -r1.65 -r1.66 src/usr.bin/make/dir.c
> cvs rdiff -u -r1.170 -r1.171 src/usr.bin/make/job.c
> cvs rdiff -u -r1.185 -r1.186 src/usr.bin/make/parse.c
>
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.
>
>