summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-09-19 11:58:16 +0000
committerIan Lynagh <igloo@earth.li>2008-09-19 11:58:16 +0000
commit027caa7f6b842751f12c1d08e90bde91a0e38a5a (patch)
tree7338a507b161355b2926dcf8ec092cdb62e226f4 /Makefile
parentec9fbf1789426a35e59b531b4a6805028eee4ee2 (diff)
downloadhaskell-027caa7f6b842751f12c1d08e90bde91a0e38a5a.tar.gz
Add HpcParser.hs to source dists
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3de5928df5..16fe934a3a 100644
--- a/Makefile
+++ b/Makefile
@@ -533,6 +533,12 @@ copy_generated_compiler_file = \
$(CP) $(FPTOOLS_TOP_ABS)/compiler/dist-stage2/build/$2.hs compiler/$1/ ; \
mv compiler/$1/$2.$3 compiler/$1/$2.$3.source ; \
fi
+copy_generated_util_file = \
+ if test -f $(FPTOOLS_TOP_ABS)/utils/$1/dist-install/build/$1/$1-tmp/$2.hs; \
+ then \
+ $(CP) $(FPTOOLS_TOP_ABS)/utils/$1/dist-install/build/$1/$1-tmp/$2.hs utils/$1/ ; \
+ mv utils/$1/$2.$3 utils/$1/$2.$3.source ; \
+ fi
dist ::
$(RM) -rf $(SRC_DIST_DIR)
@@ -551,6 +557,7 @@ dist ::
&& $(call copy_generated_compiler_file,parser,Lexer,x) \
&& $(call copy_generated_compiler_file,parser,Parser,y.pp) \
&& $(call copy_generated_compiler_file,parser,ParserCore,y) \
+ && $(call copy_generated_util_file,hpc,HpcParser,y) \
&& $(RM) -rf compiler/stage[123] mk/build.mk \
&& $(FIND) $(SRC_DIST_DIRS) \( -name _darcs -o -name SRC -o -name "autom4te*" -o -name "*~" -o -name ".cvsignore" -o -name "\#*" -o -name ".\#*" -o -name "log" -o -name "*-SAVE" -o -name "*.orig" -o -name "*.rej" \) -print | xargs $(RM) -rf \
)