Add cscope.files build target
authorJeremy Harris <jgh146exb@wizmail.org>
Sat, 28 Sep 2013 12:46:04 +0000 (13:46 +0100)
committerJeremy Harris <jgh146exb@wizmail.org>
Sat, 28 Sep 2013 12:46:04 +0000 (13:46 +0100)
src/Makefile

index ec573b5d64a48255ac274e0e85b9e7436543199b..b4f04b2e4cbf0a50910e51983d85370c29766314 100644 (file)
@@ -85,6 +85,15 @@ clean_exim:; cd build-$(buildname); \
         $(RM_COMMAND) -f *.o lookups/*.o lookups/*.a auths/*.o auths/*.a \
        routers/*.o routers/*.a transports/*.o transports/*.a lookups/*.so
 
-distclean:; $(RM_COMMAND) -rf build-*
+distclean:; $(RM_COMMAND) -rf build-* cscope*
+
+cscope.files: FRC
+       echo "-q" > $@
+       echo "-p3" >> $@
+       find src Local -name "*.[cshyl]" -print \
+                   -o -name "*akefile*" -print \
+                   -o -name EDITME -print >> $@
+
+FRC:
 
 # End of top-level makefile