summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
authorJoe Hillenbrand <joehillen@gmail.com>2014-12-23 09:15:20 -0600
committerAustin Seipp <austin@well-typed.com>2014-12-23 09:15:21 -0600
commit9fc3aebd0920561d9d3c747e6b78591d332bed08 (patch)
tree0dc059699030d12e77a4d3ac7fdaba6739c25d52 /ghc.mk
parent30fdf86eec34711be07c6771b02a6fc81ac99ee2 (diff)
downloadhaskell-9fc3aebd0920561d9d3c747e6b78591d332bed08.tar.gz
always use 'mkdir -p' and fix missing dir (fixes #9876)
Summary: Signed-off-by: Joe Hillenbrand <joehillen@gmail.com> Reviewers: thomie, austin Reviewed By: thomie, austin Subscribers: carter, thomie Differential Revision: https://phabricator.haskell.org/D566 GHC Trac Issues: #9876
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk24
1 files changed, 12 insertions, 12 deletions
diff --git a/ghc.mk b/ghc.mk
index 2c9c6359a8..6c587bd58a 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -1150,10 +1150,10 @@ EXTRA_PACKAGES=parallel stm random primitive vector dph
sdist-ghc-prep :
$(call removeTrees,$(SRC_DIST_GHC_ROOT))
$(call removeFiles,$(SRC_DIST_GHC_TARBALL))
- -mkdir $(SRC_DIST_ROOT)
- mkdir $(SRC_DIST_GHC_ROOT)
- mkdir $(SRC_DIST_GHC_DIR)
- cd $(SRC_DIST_GHC_DIR) && for i in $(SRC_DIST_GHC_DIRS); do mkdir $$i; ( cd $$i && lndir $(TOP)/$$i ); done
+ mkdir -p $(SRC_DIST_ROOT)
+ mkdir -p $(SRC_DIST_GHC_ROOT)
+ mkdir -p $(SRC_DIST_GHC_DIR)
+ cd $(SRC_DIST_GHC_DIR) && for i in $(SRC_DIST_GHC_DIRS); do mkdir -p $$i; ( cd $$i && lndir $(TOP)/$$i ); done
cd $(SRC_DIST_GHC_DIR) && for i in $(SRC_DIST_GHC_FILES); do $(LN_S) $(TOP)/$$i .; done
cd $(SRC_DIST_GHC_DIR) && $(MAKE) distclean
$(call removeTrees,$(SRC_DIST_GHC_DIR)/libraries/tarballs/)
@@ -1174,10 +1174,10 @@ sdist-ghc-prep :
sdist-windows-tarballs-prep :
$(call removeTrees,$(SRC_DIST_WINDOWS_TARBALLS_ROOT))
$(call removeFiles,$(SRC_DIST_WINDOWS_TARBALLS_TARBALL))
- -mkdir $(SRC_DIST_ROOT)
- mkdir $(SRC_DIST_WINDOWS_TARBALLS_ROOT)
- mkdir $(SRC_DIST_WINDOWS_TARBALLS_DIR)
- mkdir $(SRC_DIST_WINDOWS_TARBALLS_DIR)/ghc-tarballs
+ mkdir -p $(SRC_DIST_ROOT)
+ mkdir -p $(SRC_DIST_WINDOWS_TARBALLS_ROOT)
+ mkdir -p $(SRC_DIST_WINDOWS_TARBALLS_DIR)
+ mkdir -p $(SRC_DIST_WINDOWS_TARBALLS_DIR)/ghc-tarballs
cd $(SRC_DIST_WINDOWS_TARBALLS_DIR)/ghc-tarballs && lndir $(TOP)/ghc-tarballs
$(call removeTrees,$(SRC_DIST_WINDOWS_TARBALLS_DIR)/ghc-tarballs/.git)
@@ -1185,10 +1185,10 @@ sdist-windows-tarballs-prep :
sdist-testsuite-prep :
$(call removeTrees,$(SRC_DIST_TESTSUITE_ROOT))
$(call removeFiles,$(SRC_DIST_TESTSUITE_TARBALL))
- -mkdir $(SRC_DIST_ROOT)
- mkdir $(SRC_DIST_TESTSUITE_ROOT)
- mkdir $(SRC_DIST_TESTSUITE_DIR)
- mkdir $(SRC_DIST_TESTSUITE_DIR)/testsuite
+ mkdir -p $(SRC_DIST_ROOT)
+ mkdir -p $(SRC_DIST_TESTSUITE_ROOT)
+ mkdir -p $(SRC_DIST_TESTSUITE_DIR)
+ mkdir -p $(SRC_DIST_TESTSUITE_DIR)/testsuite
cd $(SRC_DIST_TESTSUITE_DIR)/testsuite && lndir $(TOP)/testsuite
.PHONY: sdist-ghc