[commit: ghc] master: Rarrange the distclean list; part of #7941 (4c49772)
Ian Lynagh
igloo at earth.li
Sun Jun 9 21:39:03 CEST 2013
Repository : http://darcs.haskell.org/ghc.git/
On branch : master
https://github.com/ghc/ghc/commit/4c49772492f9703403d60dbb7a95bb29b5125fda
>---------------------------------------------------------------
commit 4c49772492f9703403d60dbb7a95bb29b5125fda
Author: Ian Lynagh <ian at well-typed.com>
Date: Sun Jun 9 20:14:40 2013 +0100
Rarrange the distclean list; part of #7941
>---------------------------------------------------------------
ghc.mk | 48 +++++++++++++++++++++++++++++++++++++++++-------
1 file changed, 41 insertions(+), 7 deletions(-)
diff --git a/ghc.mk b/ghc.mk
index c604a9a..f635ca3 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -1220,21 +1220,55 @@ clean_bindistprep:
$(call removeTrees,bindistprep/)
distclean : clean
- $(call removeFiles,config.cache config.status config.log mk/config.h mk/stamp-h)
- $(call removeFiles,mk/config.mk mk/are-validating.mk mk/project.mk)
- $(call removeFiles,mk/config.mk.old mk/project.mk.old)
- $(call removeFiles,settings docs/users_guide/ug-book.xml)
- $(call removeFiles,compiler/ghc.cabal compiler/ghc.cabal.old)
+# Clean the files that ./validate creates.
+ $(call removeFiles,mk/are-validating.mk)
+
+# Clean the files that we ask ./configure to create.
+ $(call removeFiles,mk/config.mk)
+ $(call removeFiles,mk/install.mk)
+ $(call removeFiles,mk/project.mk)
+ $(call removeFiles,compiler/ghc.cabal)
$(call removeFiles,ghc/ghc-bin.cabal)
+ $(call removeFiles,utils/runghc/runghc.cabal)
+ $(call removeFiles,settings)
+ $(call removeFiles,docs/users_guide/ug-book.xml)
+ $(call removeFiles,docs/users_guide/ug-ent.xml)
+ $(call removeFiles,docs/index.html)
+ $(call removeFiles,libraries/prologue.txt)
+ $(call removeFiles,distrib/configure.ac)
+
+# ./configure also makes these.
+ $(call removeFiles,mk/stamp-h)
+ $(call removeFiles,mk/config.h)
+
+# Internal files generated by ./configure for itself.
+ $(call removeFiles,config.cache config.status config.log)
+
+# ./configure build ghc-pwd in utils/ghc-pwd/dist-boot, so clean it up.
+ $(call removeTrees,utils/ghc-pwd/dist-boot)
+
+# The root Makefile makes .old versions of some files that configure
+# generates, so we clean those too.
+ $(call removeFiles,mk/config.mk.old)
+ $(call removeFiles,mk/project.mk.old)
+ $(call removeFiles,compiler/ghc.cabal.old)
+
+# Clean the *Config.h files generated by library configure scripts
$(call removeFiles,libraries/base/include/HsBaseConfig.h)
$(call removeFiles,libraries/directory/include/HsDirectoryConfig.h)
$(call removeFiles,libraries/process/include/HsProcessConfig.h)
$(call removeFiles,libraries/unix/include/HsUnixConfig.h)
$(call removeFiles,libraries/old-time/include/HsTimeConfig.h)
- $(call removeTrees,utils/ghc-pwd/dist-boot)
+
+# The library configure scripts also like creating autom4te.cache
+# directories, so clean them all up.
+ $(call removeTrees,$(patsubst %, libraries/%/autom4te.cache, $(PACKAGES_STAGE1) $(PACKAGES_STAGE2)))
+
+# Not sure why this is being cleaned here.
$(call removeTrees,includes/dist-derivedconstants)
+
+# Finally, clean the inplace tree.
$(call removeTrees,inplace)
- $(call removeTrees,$(patsubst %, libraries/%/autom4te.cache, $(PACKAGES_STAGE1) $(PACKAGES_STAGE2)))
maintainer-clean : distclean
$(call removeFiles,configure mk/config.h.in)
More information about the ghc-commits
mailing list