From 623add8303a11333bd6cf19ee08dce02c5a8306e Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Tue, 13 Dec 2011 09:04:08 +0100 Subject: [PATCH] Do not generate dependencies if we are going to clean. --- makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index 852eb1a..fb77665 100644 --- a/makefile +++ b/makefile @@ -50,5 +50,8 @@ distclean: clean sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ rm -f $@.$$$$ +ifneq ($(MAKECMDGOALS), clean) +ifneq ($(MAKECMDGOALS), distclean) -include $(DEPEND) - +endif +endif