These temporary files were a real problem when creating the Debian package for rt-tests. debhelper (a generic suite of scripts to ease packaging) did something like: perl -c 'close(STDERR); exec("make distclean");' which leaked the *.d.$$ files and then wailed that the package contained untracked changes to the vanilla source. See http://bugs.debian.org/570443 for some more details. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx> --- Makefile | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 99fbba4..5bb8774 100644 --- a/Makefile +++ b/Makefile @@ -43,10 +43,7 @@ VPATH += src/lib # Pattern rule to generate dependency files from .c files %.d: %.c - @set -e; rm -f $@; \ - $(CC) -MM $(CFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ + @$(CC) -MM $(CFLAGS) $< | sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' > $@ || rm -f $@ .PHONY: all all: $(TARGETS) hwlatdetect -- 1.6.6.2 -- To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html