git.iko.soy/typeable/pandoc
on master help sign in
Added 'library' and 'executable' configuration flags.

Cabal can now be told to build just the library or just the executable. Updated INSTALL accordingly. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1346 788f1e2b-df1e-0410-8736-df70ead52e1b

commit774dc0776d5b99c8c7816f0c26eaa8206936cfba authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateThu 31 Jul 2008, 23:16 (18 years ago) parentd072ad4
2 files changed+23
INSTALL+7 pandoc.cabal+16
INSTALL+7
@@ -118,6 +118,13 @@ Just download the source tarball, unpack, and type:
118118This will install the pandoc executable and the Haskell libraries,
119119but not the shell scripts, man pages, or other documentation.
120120
121+You may just want the executable, or just the libraries. This
122+can be controlled with configuration flags (the `-` negates the
123+flag):
124+
125+ runhaskell Setup.hs configure -f-library # just the executable
126+ runhaskell Setup.hs configure -f-executable # just the libraries
127+
121128Note: If you are using GHC 6.6.*, you will need to start by
122129replacing `pandoc.cabal` with a version suitable for GHC 6.6:
123130
pandoc.cabal+16
@@ -64,6 +64,12 @@ Flag splitBase
6464Flag highlighting
6565 Description: Compile in support for syntax highlighting of code blocks.
6666 Default: False
67+Flag executable
68+ Description: Build the pandoc executable.
69+ Default: True
70+Flag library
71+ Description: Build the pandoc library.
72+ Default: True
6773
6874Library
6975 if flag(splitBase)
@@ -107,8 +113,18 @@ Library
107113 Ghc-Options: -O2 -Wall -threaded
108114 Ghc-Prof-Options: -auto-all
109115
116+ if flag(library)
117+ Buildable: True
118+ else
119+ Buildable: False
120+
110121Executable pandoc
111122 Hs-Source-Dirs: .
112123 Main-Is: Main.hs
113124 Ghc-Options: -O2 -Wall -threaded
114125 Ghc-Prof-Options: -auto-all
126+
127+ if flag(executable)
128+ Buildable: True
129+ else
130+ Buildable: False