Use Cabal to build hpc-bin
authorIan Lynagh <igloo@earth.li>
Sun, 14 Oct 2012 14:54:45 +0000 (15:54 +0100)
committerIan Lynagh <igloo@earth.li>
Sun, 14 Oct 2012 14:54:45 +0000 (15:54 +0100)
utils/hpc/ghc.mk
utils/hpc/hpc-bin.cabal

index 2485e16..917e099 100644 (file)
 #
 # -----------------------------------------------------------------------------
 
-utils/hpc_dist-install_MODULES = Main HpcCombine HpcDraft HpcFlags HpcLexer \
-                        HpcMarkup HpcOverlay HpcParser HpcReport \
-                        HpcShowTix HpcUtils
-utils/hpc_dist-install_HC_OPTS         = -cpp -package hpc
+utils/hpc_USES_CABAL                   = YES
+utils/hpc_PACKAGE                      = hpc-bin
 utils/hpc_dist-install_INSTALL         = YES
 utils/hpc_dist-install_INSTALL_INPLACE = YES
 utils/hpc_dist-install_PROG            = hpc$(exeext)
index 133ea5f..bce8ea5 100644 (file)
@@ -22,6 +22,15 @@ Flag base3
 Executable hpc
     Main-Is: Hpc.hs
     Other-Modules: HpcParser
+                   HpcCombine
+                   HpcDraft
+                   HpcFlags
+                   HpcLexer
+                   HpcMarkup
+                   HpcOverlay
+                   HpcReport
+                   HpcShowTix
+                   HpcUtils
 
     if flag(base4)
         Build-Depends: base       >= 4   && < 5