diff options
| author | hallgren <hallgren@chalmers.se> | 2014-06-18 23:57:45 +0000 |
|---|---|---|
| committer | hallgren <hallgren@chalmers.se> | 2014-06-18 23:57:45 +0000 |
| commit | a21a782e4786298183b669c01bd937df7835c6c0 (patch) | |
| tree | 619a38dd90636ce9d8416df7c69ce214b692dd2b /Setup.hs | |
| parent | 3d5d60023640cb1ad8cca77a04a7528f07d99949 (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.hs | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |
