Browse code

Makefile: use distclean as shortcut of maintainer-clean

Fixes: #167
Nowadays people expect distclean to be the rule to do the cleaning

Victor Seva authored on 22/05/2015 11:50:44
Showing 2 changed files
... ...
@@ -920,10 +920,10 @@ clean: clean-libs
920 920
 clean-extra-names:
921 921
 	@rm -f $(filter-out $(MAIN_NAME), sip-router ser kamailio)
922 922
 
923
-# proper/distclean a.s.o modules, utils and libs too
923
+# proper/distclean-old a.s.o modules, utils and libs too
924 924
 
925 925
 proper: clean-extra-names proper-modules proper-utils proper-libs
926
-distclean: distclean-modules distclean-utils distclean-libs
926
+distclean-old: distclean-modules distclean-utils distclean-libs
927 927
 realclean: realclean-modules realclean-utils realclean-libs
928 928
 maintainer-clean: maintainer-clean-modules maintainer-clean-utils \
929 929
  maintainer-clean-libs
... ...
@@ -936,7 +936,7 @@ clean-all: clean
936 936
 maintainer-clean: modules=$(modules_all)
937 937
 
938 938
 # on make proper clean also the build config (w/o module list)
939
-proper realclean distclean maintainer-clean: clean_cfg
939
+proper realclean distclean-old maintainer-clean: clean_cfg
940 940
 
941 941
 # on maintainer clean, remove also the configured module list
942 942
 maintainer-clean: clean_modules_cfg clean_makefile_vars
... ...
@@ -959,7 +959,7 @@ clean_modules_cfg clean-modules-cfg:
959 959
 
960 960
 # clean everything generated - shortcut on maintainer-clean
961 961
 .PHONY: pure
962
-pure: maintainer-clean
962
+pure distclean: maintainer-clean
963 963
 
964 964
 .PHONY: install_initd_debian install-initd-debian
965 965
 install_initd_debian install-initd-debian:
... ...
@@ -10,7 +10,7 @@ ifeq (,$(strip $(modules_dirs)))
10 10
 include $(COREPATH)/Makefile.dirs
11 11
 endif
12 12
 
13
-clean_targets:=	clean proper distclean realclean maintainer-clean local-clean \
13
+clean_targets:=	clean proper distclean-old realclean maintainer-clean local-clean \
14 14
 				clean-all proper-all distclean-all realclean-all \
15 15
 				clean_cfg clean-cfg clean_modules_cfg clean-modules-cfg \
16 16
 				clean-modules proper-modules realclean-modules \
... ...
@@ -19,7 +19,8 @@ clean_targets:=	clean proper distclean realclean maintainer-clean local-clean \
19 19
 				maintaner-clean-utils \
20 20
 				clean-libs proper-libs realclean-libs distclean-libs \
21 21
 				maintainer-clean-libs \
22
-				clean-tmp clean_doxygen clean-extra-names
22
+				clean-tmp clean_doxygen clean-extra-names \
23
+				pure distclean
23 24
 doc_targets:=	README man install-doc install-man install-ser-man \
24 25
 		install-every-module-doc install-every-module-man \
25 26
 		$(foreach m,$(modules_dirs),$(m)-doc $(m)-readme $(m)-man) \