summaryrefslogtreecommitdiff
path: root/Setup.hs
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2014-06-18 23:57:45 +0000
committerhallgren <hallgren@chalmers.se>2014-06-18 23:57:45 +0000
commita21a782e4786298183b669c01bd937df7835c6c0 (patch)
tree619a38dd90636ce9d8416df7c69ce214b692dd2b /Setup.hs
parent3d5d60023640cb1ad8cca77a04a7528f07d99949 (diff)
Compile example grammars during the build phase instead of the install phase
This allows more errors to be detected by the build bot. TODO: fix the gf --output-dir flag, which does not seem to change where PGF file are put.
Diffstat (limited to 'Setup.hs')
-rw-r--r--Setup.hs7
1 files changed, 6 insertions, 1 deletions
diff --git a/Setup.hs b/Setup.hs
index 2329f118a..7d6aafa4a 100644
--- a/Setup.hs
+++ b/Setup.hs
@@ -24,7 +24,7 @@ tryIOE = E.try
main :: IO ()
main = defaultMainWithHooks simpleUserHooks{ preBuild =gfPreBuild
- , postBuild=buildRGL
+ , postBuild=gfPostBuild
, preInst =gfPreInst
, postInst =gfPostInst
, preCopy =const . checkRGLArgs
@@ -41,6 +41,11 @@ main = defaultMainWithHooks simpleUserHooks{ preBuild =gfPreBuild
extractDarcsVersion distFlag
return h
+ gfPostBuild args flags pkg lbi =
+ do buildRGL args flags pkg lbi
+ let gf = default_gf pkg lbi
+ buildWeb gf args flags pkg lbi
+
gfPostInst args flags pkg lbi =
do installRGL args flags pkg lbi
let gf = default_gf pkg lbi