aboutsummaryrefslogtreecommitdiff
path: root/src/depend.mk
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-07 14:20:13 +0000
committerRoy Marples <roy@marples.name>2008-01-07 14:20:13 +0000
commitd22fc0dd931e43be5f20526e8e43a303d054ca21 (patch)
tree8c47e8d9a54cfbd42a7ad58f2d01a0a2807e4577 /src/depend.mk
parentc25651057038c6ef4f8cbd6819aa0b5ed892087a (diff)
Allow depend creation again. This doesn't work on GNU make, but does on all others.
Diffstat (limited to 'src/depend.mk')
-rw-r--r--src/depend.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/depend.mk b/src/depend.mk
new file mode 100644
index 00000000..5b2da6d2
--- /dev/null
+++ b/src/depend.mk
@@ -0,0 +1,10 @@
+# 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
+
+depend: .depend
+
+clean-depend:
+ rm -f .depend