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
This commit is contained in:
parent
d072ad4b66
commit
774dc0776d
2 changed files with 23 additions and 0 deletions
7
INSTALL
7
INSTALL
|
@ -118,6 +118,13 @@ Just download the source tarball, unpack, and type:
|
|||
This will install the pandoc executable and the Haskell libraries,
|
||||
but not the shell scripts, man pages, or other documentation.
|
||||
|
||||
You may just want the executable, or just the libraries. This
|
||||
can be controlled with configuration flags (the `-` negates the
|
||||
flag):
|
||||
|
||||
runhaskell Setup.hs configure -f-library # just the executable
|
||||
runhaskell Setup.hs configure -f-executable # just the libraries
|
||||
|
||||
Note: If you are using GHC 6.6.*, you will need to start by
|
||||
replacing `pandoc.cabal` with a version suitable for GHC 6.6:
|
||||
|
||||
|
|
16
pandoc.cabal
16
pandoc.cabal
|
@ -64,6 +64,12 @@ Flag splitBase
|
|||
Flag highlighting
|
||||
Description: Compile in support for syntax highlighting of code blocks.
|
||||
Default: False
|
||||
Flag executable
|
||||
Description: Build the pandoc executable.
|
||||
Default: True
|
||||
Flag library
|
||||
Description: Build the pandoc library.
|
||||
Default: True
|
||||
|
||||
Library
|
||||
if flag(splitBase)
|
||||
|
@ -107,8 +113,18 @@ Library
|
|||
Ghc-Options: -O2 -Wall -threaded
|
||||
Ghc-Prof-Options: -auto-all
|
||||
|
||||
if flag(library)
|
||||
Buildable: True
|
||||
else
|
||||
Buildable: False
|
||||
|
||||
Executable pandoc
|
||||
Hs-Source-Dirs: .
|
||||
Main-Is: Main.hs
|
||||
Ghc-Options: -O2 -Wall -threaded
|
||||
Ghc-Prof-Options: -auto-all
|
||||
|
||||
if flag(executable)
|
||||
Buildable: True
|
||||
else
|
||||
Buildable: False
|
||||
|
|
Loading…
Add table
Reference in a new issue