From 3f20fb3f9f8ccb2e6476e116e196b7e70ac559bb Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 28 Mar 2015 15:37:02 -0700 Subject: Always build man pages. Removed make-pandoc-man-pages flag. Updated INSTALL instructions. Makefile: removed man target, now that we generate man pages by default. --- Setup.hs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Setup.hs') diff --git a/Setup.hs b/Setup.hs index 868fe901e..c45ee69d3 100644 --- a/Setup.hs +++ b/Setup.hs @@ -38,7 +38,9 @@ main = defaultMainWithHooks $ simpleUserHooks { , instHook = \pkgdescr -> instHook simpleUserHooks pkgdescr{ executables = [x | x <- executables pkgdescr, exeName x `notElem` noInstall] } - , postBuild = makeReferenceFiles + , postBuild = \args bf pkgdescr lbi -> do + makeManPages args bf pkgdescr lbi + makeReferenceFiles args bf pkgdescr lbi } where noInstall = ["make-pandoc-man-pages","make-reference-files"] @@ -56,6 +58,13 @@ ppBlobSuffixHandler = ("hsb", \_ _ -> return () }) +makeManPages :: Args -> BuildFlags -> PackageDescription -> LocalBuildInfo -> IO () +makeManPages _ bf _ LocalBuildInfo{buildDir=buildDir} + = rawSystemExit verbosity progPath [] + where + verbosity = fromFlagOrDefault normal $ buildVerbosity bf + progPath = buildDir "make-pandoc-man-pages" "make-pandoc-man-pages" + makeReferenceFiles :: Args -> BuildFlags -> PackageDescription -> LocalBuildInfo -> IO () makeReferenceFiles _ bf _ LocalBuildInfo{buildDir=buildDir} = mapM_ -- cgit v1.2.3