Hi,

I'm having trouble with removing unwanted intermediate files and directories. My very simple makefile is as follow:

tempFile:=     $(shell mktemp -p .)
tempDir:=      $(shell mktemp -d -p .)
.INTERMEDIATE: $(tempFile) $(tempDir)
all:
        ls -l $(tempFile) $(tempDir)

I'm expecting both $(tempFile) and $(tempDir) to be removed when make completes, but they are not.

Where did I go wrong? Did I misunderstood .INTERMEDIATE?

Thanks in advance.


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to