Commit 314395e0 authored by thomie's avatar thomie

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
parent b05ab1a8
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
...@@ -10,10 +10,11 @@ ...@@ -10,10 +10,11 @@
# #
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
utils/deriveConstants_dist_MODULES = DeriveConstants utils/deriveConstants_USES_CABAL = YES
utils/deriveConstants_dist_PROGNAME = deriveConstants utils/deriveConstants_PACKAGE = deriveConstants
utils/deriveConstants_dist_PROGNAME = deriveConstants
utils/deriveConstants_dist_INSTALL = NO
utils/deriveConstants_dist_INSTALL_INPLACE = YES utils/deriveConstants_dist_INSTALL_INPLACE = YES
utils/deriveConstants_HC_OPTS += -package process -package containers
$(eval $(call build-prog,utils/deriveConstants,dist,0)) $(eval $(call build-prog,utils/deriveConstants,dist,0))
Name: genprimopcode
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 genprimopcode
Default-Language: Haskell2010
Main-Is: Main.hs
Other-Modules: Lexer
Parser
ParserM
Syntax
Build-Depends: base >= 4 && < 5,
array
...@@ -10,9 +10,10 @@ ...@@ -10,9 +10,10 @@
# #
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
utils/genprimopcode_dist_MODULES = Lexer Main ParserM Parser Syntax utils/genprimopcode_USES_CABAL = YES
utils/genprimopcode_dist_PROGNAME = genprimopcode utils/genprimopcode_PACKAGE = genprimopcode
utils/genprimopcode_dist_HC_OPTS = -package array utils/genprimopcode_dist_PROGNAME = genprimopcode
utils/genprimopcode_dist_INSTALL = NO
utils/genprimopcode_dist_INSTALL_INPLACE = YES utils/genprimopcode_dist_INSTALL_INPLACE = YES
$(eval $(call build-prog,utils/genprimopcode,dist,0)) $(eval $(call build-prog,utils/genprimopcode,dist,0))
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