summaryrefslogtreecommitdiff
path: root/utils/deriveConstants
diff options
context:
space:
mode:
authorThomas Miedema <thomasmiedema@gmail.com>2015-10-26 13:30:07 +0100
committerThomas Miedema <thomasmiedema@gmail.com>2015-10-30 17:43:24 +0100
commit314395e00be10e6343840c215a4779aeec2542df (patch)
treed01bc1d4c842e242bd9432bb14b79fb0ee3ccb51 /utils/deriveConstants
parentb05ab1a8bde53fee69d1ba99c7475444e9f84aa0 (diff)
downloadhaskell-314395e00be10e6343840c215a4779aeec2542df.tar.gz
Build system: cabalise deriveConstants + genprimopcode
This is needed for #10374 (but doesn't fix it yet). Also rename DeriveConstants.hs to Main.hs, because the build system has trouble with Main modules not called Main.hs. Differential Revision: https://phabricator.haskell.org/D1380
Diffstat (limited to 'utils/deriveConstants')
-rw-r--r--utils/deriveConstants/Main.hs (renamed from utils/deriveConstants/DeriveConstants.hs)0
-rw-r--r--utils/deriveConstants/deriveConstants.cabal20
-rw-r--r--utils/deriveConstants/ghc.mk7
3 files changed, 24 insertions, 3 deletions
diff --git a/utils/deriveConstants/DeriveConstants.hs b/utils/deriveConstants/Main.hs
index 00a9c1a4ed..00a9c1a4ed 100644
--- a/utils/deriveConstants/DeriveConstants.hs
+++ b/utils/deriveConstants/Main.hs
diff --git a/utils/deriveConstants/deriveConstants.cabal b/utils/deriveConstants/deriveConstants.cabal
new file mode 100644
index 0000000000..72afb72c80
--- /dev/null
+++ b/utils/deriveConstants/deriveConstants.cabal
@@ -0,0 +1,20 @@
+Name: deriveConstants
+Version: 0.1
+Copyright: XXX
+License: BSD3
+-- XXX License-File: LICENSE
+Author: XXX
+Maintainer: XXX
+Synopsis: XXX
+Description: XXX
+Category: Development
+build-type: Simple
+cabal-version: >=1.10
+
+Executable deriveConstants
+ Default-Language: Haskell2010
+ Main-Is: Main.hs
+ Build-Depends: base >= 4 && < 5,
+ containers,
+ process,
+ filepath
diff --git a/utils/deriveConstants/ghc.mk b/utils/deriveConstants/ghc.mk
index 968282e282..e2789991c1 100644
--- a/utils/deriveConstants/ghc.mk
+++ b/utils/deriveConstants/ghc.mk
@@ -10,10 +10,11 @@
#
# -----------------------------------------------------------------------------
-utils/deriveConstants_dist_MODULES = DeriveConstants
-utils/deriveConstants_dist_PROGNAME = deriveConstants
+utils/deriveConstants_USES_CABAL = YES
+utils/deriveConstants_PACKAGE = deriveConstants
+utils/deriveConstants_dist_PROGNAME = deriveConstants
+utils/deriveConstants_dist_INSTALL = NO
utils/deriveConstants_dist_INSTALL_INPLACE = YES
-utils/deriveConstants_HC_OPTS += -package process -package containers
$(eval $(call build-prog,utils/deriveConstants,dist,0))