[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why is make not deleting intermediate files?
From: |
Paul Smith |
Subject: |
Re: Why is make not deleting intermediate files? |
Date: |
Thu, 19 Jan 2012 18:08:05 -0500 |
On Thu, 2012-01-19 at 14:48 -0800, Reece Hart wrote:
> .INTERMEDIATE: %.dep
The .INTERMEDIATE pseudo-target does not accept patterns. If it did,
the manual would say that explicitly (and it doesn't). You have to list
the target itself here. What the above does is declare the explicit
target '%.dep' as intermediate. You want:
.INTERMEDIATE: twice.dep
However, making that fix still didn't fix the problem for me in GNU make
3.82. However checking the latest CVS version I see that it works as
expected:
$ grep twice.dep Makefile
another: twice.dep
.INTERMEDIATE: twice.dep
$ rm -f once* twice*; make-cvs oncetwice
oncetwice: once twice
rm once.dep twice.dep