Commit 467f1aa6 authored by Simon Marlow's avatar Simon Marlow

fix 'make sdist'

parent e657b7fb
...@@ -819,7 +819,7 @@ SRC_DIST_FILES += \ ...@@ -819,7 +819,7 @@ SRC_DIST_FILES += \
aclocal.m4 README ANNOUNCE HACKING LICENSE Makefile install-sh \ aclocal.m4 README ANNOUNCE HACKING LICENSE Makefile install-sh \
ghc.spec.in ghc.spec extra-gcc-opts.in VERSION boot ghc.mk 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 : VERSION :
echo $(ProjectVersion) >VERSION echo $(ProjectVersion) >VERSION
...@@ -842,7 +842,7 @@ sdist_file = \ ...@@ -842,7 +842,7 @@ sdist_file = \
.PHONY: sdist-prep .PHONY: sdist-prep
sdist-prep : sdist-prep :
"$(RM)" $(RM_OPTS) -r $(SRC_DIST_DIR) "$(RM)" $(RM_OPTS) -r $(SRC_DIST_DIR)
"$(RM)" $(SRC_DIST_NAME).tar.gz "$(RM)" $(RM_OPTS) $(SRC_DIST_TARBALL)
mkdir $(SRC_DIST_DIR) mkdir $(SRC_DIST_DIR)
( cd $(SRC_DIST_DIR) \ ( cd $(SRC_DIST_DIR) \
&& for i in $(SRC_DIST_DIRS); do mkdir $$i; (cd $$i && lndir $(TOP)/$$i ); done \ && for i in $(SRC_DIST_DIRS); do mkdir $$i; (cd $$i && lndir $(TOP)/$$i ); done \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment