]> git.eshelyaron.com Git - emacs.git/commitdiff
* Makefile.in: Fix extraclean rule.
authorGlenn Morris <rgm@gnu.org>
Sat, 23 May 2015 22:05:02 +0000 (15:05 -0700)
committerGlenn Morris <rgm@gnu.org>
Sat, 23 May 2015 22:05:02 +0000 (15:05 -0700)
(extraclean_dirs): New.
(extraclean): Use it.

Makefile.in

index 9790dbd7b1058b4b5ac9b10d32aef471ce7a75af..a2258f2c56e25a1fdb99c6bbc4af2a6e7c72501a 100644 (file)
@@ -909,11 +909,12 @@ maintainer-clean: bootstrap-clean $(maintainer_clean_dirs:=_maintainer-clean)
 ### it deletes backup and autosave files too.
 ### Note that we abuse this in some subdirectories (eg leim),
 ### to delete some generated files that are slow to rebuild.
-$(foreach dir,$(SUBDIR),$(eval $(call submake_template,$(dir),extraclean)))
+extraclean_dirs = ${NTDIR} lib-src src leim \
+  admin/charsets admin/grammars admin/unidata
 
-## FIXME this is busted because most of these do not have extraclean rules.
-## Also it is missing things that do have such rules.
-extraclean: $(SUBDIR:=_extraclean)
+$(foreach dir,$(extraclean_dirs),$(eval $(call submake_template,$(dir),extraclean)))
+
+extraclean: $(extraclean_dirs:=_extraclean)
        ${top_maintainer_clean}
        -rm -f config-tmp-*
        -rm -f *~ \#*