]> jfr.im git - irc/quakenet/newserv.git/commitdiff
CHANSERV: try and clean submodules more effectively
authorChris Porter <redacted>
Fri, 7 Feb 2014 23:57:06 +0000 (23:57 +0000)
committerChris Porter <redacted>
Fri, 7 Feb 2014 23:57:06 +0000 (23:57 +0000)
--HG--
branch : chanserv-live

chanserv/Makefile
chanserv/authcmds/Makefile
chanserv/chancmds/Makefile
chanserv/usercmds/Makefile

index bd9ee061a5ed5195090e770bdc3a0b3b3be20a94..86d871bfa548bd62c97df32ab6754cd7d2cff4e7 100644 (file)
@@ -2,6 +2,7 @@ include ../build.mk
 include build.mk
 
 CSDIRS=database chancmds usercmds authcmds authtracker newsearch
+CLEANDIRS=chancmds usercmds authcmds
 
 .PHONY: all dirs $(CSDIRS) clean distclean
 all: chanserv.so chanserv_protect.so chanserv_grep.so chanserv_relay.so chanserv_flags.so chanserv_cleanupdb.so dirs
@@ -15,6 +16,7 @@ $(CSDIRS):
 clean:
        rm -f */*.o */*.so *.o *.so
        rm -rf */.deps .deps
+       for i in $(CLEANDIRS) ; do $(MAKE) -C $$i $(MFLAGS) clean ; done
 
 distclean:
        rm -f */.autobuild.mk .autobuild.mk
index 5722463f9d15bd0527f249fc4ed6c70951e2018c..7871dbdc8a6f5ac9198e12eff4aa5a40ea599ffa 100644 (file)
@@ -2,10 +2,14 @@ INCPATH=../../
 include ../../build.mk
 include ../build.mk
 
-.PHONY: all
+.PHONY: all clean
 all: .autobuild.mk chanserv_authcmds.so
 
 .autobuild.mk: *.c
        ../mkcommandlist.pl chanserv_authcmds.so
 
 sinclude .autobuild.mk
+
+clean:
+       rm -f commandlist.c *.o *.so .autobuild.mk
+
index 28186cb39a508f2263d8bfeb693697759ea9b0ea..44512a3ce84764dded693f27cc73d93dd4af7a11 100644 (file)
@@ -2,7 +2,7 @@ INCPATH=../../
 include ../../build.mk
 include ../build.mk
 
-.PHONY: all
+.PHONY: all clean
 all: .autobuild.mk chanserv_chancmds.so
 
 .autobuild.mk: *.c
@@ -10,3 +10,5 @@ all: .autobuild.mk chanserv_chancmds.so
 
 sinclude .autobuild.mk
 
+clean:
+       rm -f commandlist.c *.o *.so .autobuild.mk
index b05a7342195c8c8fd40dd9d434b8099dc53a0332..205617407e87562ad8ea9dcfdea7896a0ee13972 100644 (file)
@@ -2,10 +2,14 @@ INCPATH=../../
 include ../../build.mk
 include ../build.mk
 
-.PHONY: all
+.PHONY: all clean
 all: .autobuild.mk chanserv_usercmds.so
 
 .autobuild.mk: *.c
        ../mkcommandlist.pl chanserv_usercmds.so
 
 sinclude .autobuild.mk
+
+clean:
+       rm -f commandlist.c *.o *.so .autobuild.mk
+