git.iko.soy/typeable/pandoc
on 1.12 help sign in
typeable/pandoc/Makefile
51 lines 1.4 kB history raw
1# This Makefile is for development only. It requires cabal-dev.
2# To get started, do 'make prep' and then 'make' or 'make quick'.
4.PHONY: prep submodules all quick bench clean veryclean install sdist
6all:
7 cabal-dev configure --enable-tests --enable-benchmarks && cabal-dev build
9test: all
10 cabal test
12prof:
13 cabal-dev configure --disable-tests --enable-library-profiling --enable-executable-profiling && cabal-dev build
15prep: submodules pandoc-types citeproc-hs
16 (cabal-dev --version || (cabal update && cabal install cabal-dev)) && \
17 cabal-dev update && \
18 cabal-dev install-deps --enable-library-profiling --enable-tests --enable-benchmarks
20submodules:
21 git submodule update --init
23quick:
24 cabal-dev configure --enable-tests --disable-optimization && cabal-dev build
26relocatable:
27 cabal-dev configure -fembed_data_files && cabal-dev build
29bench:
30 cabal-dev configure --enable-benchmarks && cabal-dev build
32sdist:
33 dist/setup/setup sdist
34 # cabal sdist won't work, see https://github.com/haskell/cabal/issues/403
36clean:
37 cabal-dev clean
39veryclean: clean
40 rm -rf pandoc-types citeproc-hs dist cabal-dev
42pandoc-types:
43 git clone https://github.com/jgm/pandoc-types && \
44 cabal-dev add-source pandoc-types
46citeproc-hs: pandoc-types
47 darcs get --lazy http://gorgias.mine.nu/repos/citeproc-hs && \
48 cabal-dev add-source citeproc-hs
50install:
51 cabal-dev install --enable-tests