about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Completion/Makefile.in5
-rw-r--r--Doc/Makefile.in12
-rw-r--r--Functions/Makefile.in5
-rw-r--r--Makefile.in4
4 files changed, 15 insertions, 11 deletions
diff --git a/Completion/Makefile.in b/Completion/Makefile.in
index 27f88d01f..128614ad1 100644
--- a/Completion/Makefile.in
+++ b/Completion/Makefile.in
@@ -52,14 +52,15 @@ uninstall: uninstall.fns
 
 # ========== DEPENDENCIES FOR CLEANUP ==========
 
-@CLEAN_MK@
-
 mostlyclean-here:
 
 distclean-here:
+	rm -f Makefile
 
 realclean-here:
 
+@CLEAN_MK@
+
 # ========== DEPENDENCIES FOR MAINTENANCE ==========
 
 @CONFIG_MK@
diff --git a/Doc/Makefile.in b/Doc/Makefile.in
index 6440a7da8..6c6367526 100644
--- a/Doc/Makefile.in
+++ b/Doc/Makefile.in
@@ -205,18 +205,18 @@ uninstall.info:
 
 # ========== DEPENDENCIES FOR CLEANUP ==========
 
-@CLEAN_MK@
-
 clean-here:
 	rm -f *.html *.info* *.dvi *.ps
 	rm -f *.aux *.cp *.cps *.fn *.fns *.ky *.log
 	rm -f *.pg *.pgs *.toc *.tp *.tps *.vr *.vrs
 
-distclean-here:
-	rm -f Makefile
+distclean-here: clean-here
+	rm -f Makefile *.1 *.texi
 
-realclean-here:
-	cd $(sdir) && rm -f version.yo *.1 *.texi ../META-FAQ
+realclean-here: distclean-here
+	cd $(sdir) && rm -f version.yo ../META-FAQ
+
+@CLEAN_MK@
 
 # ========== DEPENDENCIES FOR MAINTENANCE ==========
 
diff --git a/Functions/Makefile.in b/Functions/Makefile.in
index a00936220..76e8cfcd2 100644
--- a/Functions/Makefile.in
+++ b/Functions/Makefile.in
@@ -52,14 +52,15 @@ uninstall: uninstall.fns
 
 # ========== DEPENDENCIES FOR CLEANUP ==========
 
-@CLEAN_MK@
-
 mostlyclean-here:
 
 distclean-here:
+	rm -f Makefile
 
 realclean-here:
 
+@CLEAN_MK@
+
 # ========== DEPENDENCIES FOR MAINTENANCE ==========
 
 @CONFIG_MK@
diff --git a/Makefile.in b/Makefile.in
index def71d50f..72bc98df9 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -96,7 +96,9 @@ install.html uninstall.html:
 @CLEAN_MK@
 
 distclean-here:
-	rm -f Makefile config.h config.status config.log config.cache stamp-h
+	@cd Completion && $(MAKE) $(MAKEDEFS) $@
+	@cd Functions && $(MAKE) $(MAKEDEFS) $@
+	rm -f Makefile config.h config.status config.log config.cache stamp-h Config/defs.mk
 
 realclean-here:
 	cd $(sdir) && rm -f config.h.in stamp-h.in configure