diff --git a/xmonad.cabal b/xmonad.cabal index 4da1f19..0605532 100644 --- a/xmonad.cabal +++ b/xmonad.cabal @@ -43,6 +43,11 @@ flag testing description: Testing mode, only build minimal components default: False +flag generatemanpage + description: Build the tool for generating the man page + default: False + manual: True + library hs-source-dirs: src exposed-modules: XMonad @@ -94,6 +99,18 @@ executable xmonad if impl(ghc >= 6.12.1) ghc-options: -Wall -fno-warn-unused-do-bind +executable generatemanpage + main-is: GenerateManpage.hs + hs-source-dirs: util + build-depends: base, + Cabal, + pandoc, + pretty, + regex-posix + + if !flag(generatemanpage) + buildable: False + -- note util/hpcReport.sh test-suite properties type: exitcode-stdio-1.0