diff options
author | Ian Lynagh <igloo@earth.li> | 2009-10-02 19:12:18 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2009-10-02 19:12:18 +0000 |
commit | 883d980815437736c486bf69b2f066ef918d2989 (patch) | |
tree | 51590d522003ca6220ff2ee98f29c1c67991fb4c /utils | |
parent | 6a2a21971ae1a29bf296ecc8652f7cb86b71e7bb (diff) | |
download | haskell-883d980815437736c486bf69b2f066ef918d2989.tar.gz |
Use "order only constraints" for directories
There are now 104 calls to mkdirhier, down from 1201, when validating.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/ghc-cabal/ghc.mk | 10 | ||||
-rw-r--r-- | utils/ghc-pkg/ghc.mk | 7 | ||||
-rw-r--r-- | utils/mkdependC/ghc.mk | 3 | ||||
-rw-r--r-- | utils/runghc/ghc.mk | 3 |
4 files changed, 7 insertions, 16 deletions
diff --git a/utils/ghc-cabal/ghc.mk b/utils/ghc-cabal/ghc.mk index c41cd01cd8..71232fb422 100644 --- a/utils/ghc-cabal/ghc.mk +++ b/utils/ghc-cabal/ghc.mk @@ -18,13 +18,10 @@ CABAL_DOTTED_VERSION := $(shell grep "^Version:" libraries/Cabal/Cabal.cabal | s CABAL_VERSION := $(subst .,$(comma),$(CABAL_DOTTED_VERSION)) CABAL_CONSTRAINT := --constraint="Cabal == $(CABAL_DOTTED_VERSION)" -$(GHC_CABAL_INPLACE) : $(GHC_CABAL_DIR)/dist/build/tmp/ghc-cabal$(exeext) - "$(MKDIRHIER)" $(dir $@) +$(GHC_CABAL_INPLACE) : $(GHC_CABAL_DIR)/dist/build/tmp/ghc-cabal$(exeext) | $$(dir $$@)/. "$(CP)" $< $@ -$(GHC_CABAL_DIR)/dist/build/tmp/ghc-cabal$(exeext): $(GHC_CABAL_DIR)/ghc-cabal.hs $(MKDIRHIER) - "$(MKDIRHIER)" bootstrapping - "$(MKDIRHIER)" $(dir $@) +$(GHC_CABAL_DIR)/dist/build/tmp/ghc-cabal$(exeext): $(GHC_CABAL_DIR)/ghc-cabal.hs | $$(dir $$@)/. bootstrapping/. "$(GHC)" $(SRC_HC_OPTS) --make $(GHC_CABAL_DIR)/ghc-cabal.hs -o $@ \ -Wall $(WERROR) \ -DCABAL_VERSION=$(CABAL_VERSION) \ @@ -54,8 +51,7 @@ $(GHC_CABAL_DIR)_dist-dummy-ghc_MODULES = dummy-ghc $(GHC_CABAL_DIR)_dist-dummy-ghc_PROG = dummy-ghc$(exeext) # depend on project.mk, so we pick up the new version number if it changes. -$(GHC_CABAL_DIR)/dist-dummy-ghc/build/dummy-ghc.hs : $(GHC_CABAL_DIR)/ghc.mk $(MKDIRHIER) mk/project.mk - "$(MKDIRHIER)" $(dir $@) +$(GHC_CABAL_DIR)/dist-dummy-ghc/build/dummy-ghc.hs : $(GHC_CABAL_DIR)/ghc.mk mk/project.mk | $$(dir $$@)/. echo "import System.Environment; import System.Cmd; import System.Exit" >$@ echo "main :: IO ()" >>$@ echo "main = do args <- getArgs; if args == [\"--numeric-version\"] then putStrLn \"$(ProjectVersion)\" else do e <- rawSystem \"$(GHC_STAGE0)\" args; exitWith e" >>$@ diff --git a/utils/ghc-pkg/ghc.mk b/utils/ghc-pkg/ghc.mk index 679570315f..d5ee062419 100644 --- a/utils/ghc-pkg/ghc.mk +++ b/utils/ghc-pkg/ghc.mk @@ -30,8 +30,7 @@ endif else -$(GHC_PKG_INPLACE) : utils/ghc-pkg/dist/build/$(utils/ghc-pkg_dist_PROG)$(exeext) $(MKDIRHIER) - "$(MKDIRHIER)" $(INPLACE_PACKAGE_CONF) +$(GHC_PKG_INPLACE) : utils/ghc-pkg/dist/build/$(utils/ghc-pkg_dist_PROG)$(exeext) | $$(dir $$@)/. $(INPLACE_PACKAGE_CONF)/. "$(RM)" $(RM_OPTS) $(INPLACE_PACKAGE_CONF)/* ifeq "$(Windows)" "YES" cp $< $@ @@ -47,9 +46,7 @@ endif # depend on ghc-cabal, otherwise we build Cabal twice when building in parallel # The binary package is not warning-clean, so we need a few -fno-warns here. -utils/ghc-pkg/dist/build/$(utils/ghc-pkg_dist_PROG)$(exeext): utils/ghc-pkg/Main.hs utils/ghc-pkg/Version.hs $(GHC_CABAL_INPLACE) $(MKDIRHIER) - "$(MKDIRHIER)" bootstrapping - "$(MKDIRHIER)" utils/ghc-pkg/dist/build +utils/ghc-pkg/dist/build/$(utils/ghc-pkg_dist_PROG)$(exeext): utils/ghc-pkg/Main.hs utils/ghc-pkg/Version.hs $(GHC_CABAL_INPLACE) | bootstrapping/. $$(dir $$@)/. "$(GHC)" $(SRC_HC_OPTS) --make utils/ghc-pkg/Main.hs -o $@ \ -Wall -fno-warn-unused-imports \ -DCABAL_VERSION=$(CABAL_VERSION) \ diff --git a/utils/mkdependC/ghc.mk b/utils/mkdependC/ghc.mk index 1fa673a767..229e3ee40e 100644 --- a/utils/mkdependC/ghc.mk +++ b/utils/mkdependC/ghc.mk @@ -10,8 +10,7 @@ # # ----------------------------------------------------------------------------- -$(MKDEPENDC) : utils/mkdependC/mkdependC.prl $(MKDIRHIER) - "$(MKDIRHIER)" $(dir $@) +$(MKDEPENDC) : utils/mkdependC/mkdependC.prl | $$(dir $$@)/. "$(RM)" $(RM_OPTS) $@ echo '#!$(PERL)' >> $@ echo '$$DEFAULT_TMPDIR = "$(DEFAULT_TMPDIR)";' >> $@ diff --git a/utils/runghc/ghc.mk b/utils/runghc/ghc.mk index b43634eaab..8892ce0c82 100644 --- a/utils/runghc/ghc.mk +++ b/utils/runghc/ghc.mk @@ -18,8 +18,7 @@ utils/runghc_dist_INSTALL_SHELL_WRAPPER = YES ifneq "$(BINDIST)" "YES" # hack: the build system has trouble with Main modules not called Main.hs -utils/runghc/dist/build/Main.hs : utils/runghc/runghc.hs $(MKDIRHIER) - "$(MKDIRHIER)" $(dir $@) +utils/runghc/dist/build/Main.hs : utils/runghc/runghc.hs | $$(dir $$@)/. "$(CP)" $< $@ endif |