aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-04-13 13:20:26 +0000
committerMike Frysinger <vapier@gentoo.org>2007-04-13 13:20:26 +0000
commit2ea37cdae3ccd57d85f8ca597a5286b90e58dd6e (patch)
tree942759ee87a55a81a7c3eb2960c68607ea10c6ef /src/Makefile
parent2348f115c0a4cf70e3b1eec5520fa0f47634ef8c (diff)
add .depend / .PHONY support
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index 900dd555..9b577cac 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -152,3 +152,9 @@ install: $(TARGET)
clean:
rm -f $(TARGET) $(RCLINKS) $(RCPRIVLINKS)
rm -f *.o *~ *.core *.so
+
+-include .depend
+.depend:
+ $(CC) $(CPPFLAGS) -MM *.c > .depend
+
+.PHONY: all clean install links