From a21a782e4786298183b669c01bd937df7835c6c0 Mon Sep 17 00:00:00 2001 From: hallgren Date: Wed, 18 Jun 2014 23:57:45 +0000 Subject: 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. --- Setup.hs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Setup.hs') 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 -- cgit v1.2.3