Clean the bootstrapping extensible-exceptions package
[ghc-hetmet.git] / libraries / Makefile
index ce28841..624427f 100644 (file)
@@ -120,9 +120,6 @@ ifeq "$(ghc_ge_605)" "NO"
 CABAL_GHC_FLAGS += -cpp
 endif
 
-# Euch, hideous hack:
-CABAL_VERSION = $(shell grep "^Version:" Cabal/Cabal.cabal | sed -e "s/^Version: //" -e 's/\./,/g')
-
 BOOTSTRAPPING_FLAGS = $(CABAL_GHC_FLAGS) -DCABAL_VERSION=$(CABAL_VERSION) -odir $(HERE_ABS)/bootstrapping -hidir $(HERE_ABS)/bootstrapping -i$(HERE_ABS)/Cabal -i$(HERE_ABS)/filepath -i$(HERE_ABS)/hpc
 
 .PHONY: boot
@@ -286,9 +283,10 @@ maintainer-clean: clean
 distclean: clean
 
 clean: $(foreach SUBDIR,$(SUBDIRS),clean.library.$(SUBDIR))
-       -cd filepath && $(CABAL) clean --distpref=dist-bootstrapping
-       -cd Cabal    && $(CABAL) clean --distpref=dist-bootstrapping
-       -cd hpc      && $(CABAL) clean --distpref=dist-bootstrapping
+       -cd extensible-exceptions && $(CABAL) clean --distpref=dist-bootstrapping
+       -cd filepath              && $(CABAL) clean --distpref=dist-bootstrapping
+       -cd Cabal                 && $(CABAL) clean --distpref=dist-bootstrapping
+       -cd hpc                   && $(CABAL) clean --distpref=dist-bootstrapping
        $(RM) -rf bootstrapping
        $(RM) -f bootstrapping.conf     bootstrapping.conf.old
        $(RM) -f bootstrapping.conf.tmp bootstrapping.conf.tmp.old