summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2009-06-02 12:16:18 +0000
committerSimon Marlow <marlowsd@gmail.com>2009-06-02 12:16:18 +0000
commit467f1aa698446b99d365122a2a30d1618f2bec74 (patch)
treef9f665f3fb1b8e443da4046619015f26cc7b9c63 /ghc.mk
parente657b7fb12f1beafd95b5cacee2400312c1098a6 (diff)
downloadhaskell-467f1aa698446b99d365122a2a30d1618f2bec74.tar.gz
fix 'make sdist'
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/ghc.mk b/ghc.mk
index 816efc6ead..73dc5f7e2d 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -819,7 +819,7 @@ SRC_DIST_FILES += \
aclocal.m4 README ANNOUNCE HACKING LICENSE Makefile install-sh \
ghc.spec.in ghc.spec extra-gcc-opts.in VERSION boot ghc.mk
-SRC_DIST_TARBALL = ghc-$(ProjectVersion)-src.tar.bz2
+SRC_DIST_TARBALL = $(SRC_DIST_NAME)-src.tar.bz2
VERSION :
echo $(ProjectVersion) >VERSION
@@ -842,7 +842,7 @@ sdist_file = \
.PHONY: sdist-prep
sdist-prep :
"$(RM)" $(RM_OPTS) -r $(SRC_DIST_DIR)
- "$(RM)" $(SRC_DIST_NAME).tar.gz
+ "$(RM)" $(RM_OPTS) $(SRC_DIST_TARBALL)
mkdir $(SRC_DIST_DIR)
( cd $(SRC_DIST_DIR) \
&& for i in $(SRC_DIST_DIRS); do mkdir $$i; (cd $$i && lndir $(TOP)/$$i ); done \