From f580c1568b413496f09eea1fa33561e9ed2ad54a Mon Sep 17 00:00:00 2001
From: Ian Lynagh <igloo@earth.li>
Date: Sun, 26 Apr 2009 11:42:15 +0000
Subject: [PATCH] GHC new build system megapatch

---
 Hpc.hs => Main.hs | 0
 Makefile          | 8 +++-----
 ghc.mk            | 7 +++++++
 3 files changed, 10 insertions(+), 5 deletions(-)
 rename Hpc.hs => Main.hs (100%)
 create mode 100644 ghc.mk

diff --git a/Hpc.hs b/Main.hs
similarity index 100%
rename from Hpc.hs
rename to Main.hs
diff --git a/Makefile b/Makefile
index 0f34de9..a8458d2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,3 @@
-
-TOP=../..
-include $(TOP)/mk/boilerplate.mk
-include $(TOP)/mk/cabal.mk
-
+dir = utils/hpc
+TOP = ../..
+include $(TOP)/mk/sub-makefile.mk
diff --git a/ghc.mk b/ghc.mk
new file mode 100644
index 0000000..0e0f91c
--- /dev/null
+++ b/ghc.mk
@@ -0,0 +1,7 @@
+utils/hpc_dist_MODULES = Main HpcCombine HpcDraft HpcFlags HpcLexer HpcMap \
+			 HpcMarkup HpcOverlay HpcParser HpcReport HpcSet \
+			 HpcShowTix HpcUtils
+utils/hpc_dist_HC_OPTS = -cpp -package hpc
+utils/hpc_dist_INSTALL = YES
+utils/hpc_dist_PROG    = hpc$(exeext)
+$(eval $(call build-prog,utils/hpc,dist,1))
-- 
GitLab