From: Ian Lynagh Date: Wed, 24 Sep 2008 23:05:53 +0000 (+0000) Subject: Fix maintainer-clean X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=ed1cc5d8a193151d6733fb146986ebf23597fda0 Fix maintainer-clean --- diff --git a/compiler/Makefile b/compiler/Makefile index d64732a..03f0940 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -56,7 +56,7 @@ stage3 :: $(MAKE) stage=3 ifeq "$(CLEAN_ALL_STAGES)" "YES" -clean distclean:: +clean distclean maintainer-clean:: $(RM) -f prelude/primops.txt $(RM) -f $(PRIMOP_BITS) $(RM) -f $(CONFIG_HS) @@ -66,13 +66,13 @@ clean distclean:: endif ifeq "$(CLEAN_ALL_STAGES)" "YES" -clean distclean:: clean.stage.1 clean.stage.2 clean.stage.3 +clean distclean maintainer-clean:: clean.stage.1 clean.stage.2 clean.stage.3 else -clean distclean:: clean.stage.$(stage) +clean distclean maintainer-clean:: clean.stage.$(stage) endif ifeq "$(CLEAN_ALL_STAGES)" "YES" -distclean:: +distclean maintainer-clean:: $(RM) -f ghc.cabal endif diff --git a/ghc/Makefile b/ghc/Makefile index 23a5384..f1666d1 100644 --- a/ghc/Makefile +++ b/ghc/Makefile @@ -36,13 +36,13 @@ stage3 :: ifeq "$(CLEAN_ALL_STAGES)" "YES" -clean distclean:: clean.stage.1 clean.stage.2 clean.stage.3 +clean distclean maintainer-clean:: clean.stage.1 clean.stage.2 clean.stage.3 else -clean distclean:: clean.stage.$(stage) +clean distclean maintainer-clean:: clean.stage.$(stage) endif ifeq "$(CLEAN_ALL_STAGES)" "YES" -distclean:: +distclean maintainer-clean:: $(RM) -f ghc-bin.cabal endif diff --git a/libraries/Makefile b/libraries/Makefile index d122031..43220f6 100644 --- a/libraries/Makefile +++ b/libraries/Makefile @@ -276,8 +276,9 @@ ifneq "$(HSCOLOUR)" "" if $(IFBUILDABLE) $* && [ -d $*/dist/doc/html/*/src/ ]; then cp hscolour.css $*/dist/doc/html/*/src/; fi endif -.PHONY: distclean clean clean.library.% +.PHONY: maintainer-clean distclean clean clean.library.% +maintainer-clean: clean distclean: clean clean: $(foreach SUBDIR,$(SUBDIRS),clean.library.$(SUBDIR)) @@ -296,7 +297,7 @@ ifneq "$(wildcard dph)" "" $(MAKE) -C dph clean endif -distclean: +maintainer-clean distclean: $(RM) $(foreach lib, $(SUBDIRS), $(lib)/.depend $(lib)/.depend.bak) $(foreach SUBDIR,$(SUBDIRS),clean.library.$(SUBDIR)): \