summaryrefslogtreecommitdiff
path: root/src/depend.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/depend.mk')
-rw-r--r--src/depend.mk11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/depend.mk b/src/depend.mk
index 5b2da6d..a4d717a 100644
--- a/src/depend.mk
+++ b/src/depend.mk
@@ -1,10 +1,11 @@
# This only works for make implementations that always include a .depend if
# it exists. Only GNU make does not do this.
-.depend: ${SCRIPTS} ${SRCS}
- $(CC) $(CFLAGS) -MM ${SRCS} > .depend
+# Copyright 2008 Roy Marples <roy@marples.name>
-depend: .depend
+CLEANFILES+= .depend
+
+.depend: ${SRCS}
+ ${CC} ${CFLAGS} -MM ${SRCS} > .depend
-clean-depend:
- rm -f .depend
+depend: .depend