2012-08-08 07:49:56 +02:00
|
|
|
# This Makefile is for development only. It requires cabal-dev.
|
|
|
|
# To get started, do 'make prep' and then 'make' or 'make quick'.
|
|
|
|
|
2012-09-27 02:08:31 +02:00
|
|
|
.PHONY: prep, all, quick, bench, clean, veryclean, install
|
2012-08-14 19:01:33 +02:00
|
|
|
|
2012-08-08 07:49:56 +02:00
|
|
|
all:
|
|
|
|
cabal-dev configure --enable-tests --enable-benchmarks && cabal-dev build
|
|
|
|
|
2012-09-06 22:30:34 +02:00
|
|
|
prof:
|
2012-09-06 22:49:43 +02:00
|
|
|
cabal-dev configure --enable-tests --enable-library-profiling --enable-executable-profiling && cabal-dev build
|
2012-09-06 22:30:34 +02:00
|
|
|
|
2012-09-29 03:57:37 +02:00
|
|
|
prep: pandoc-types
|
|
|
|
cabal update && \
|
2012-09-06 22:30:34 +02:00
|
|
|
cabal-dev install-deps --enable-library-profiling --enable-tests --enable-benchmarks
|
2012-08-08 07:49:56 +02:00
|
|
|
|
|
|
|
quick:
|
|
|
|
cabal-dev configure --enable-tests --disable-optimization && cabal-dev build
|
|
|
|
|
|
|
|
bench:
|
|
|
|
cabal-dev configure --enable-benchmarks && cabal-dev build
|
|
|
|
|
|
|
|
clean:
|
2012-09-27 02:08:31 +02:00
|
|
|
cabal-dev clean
|
|
|
|
|
|
|
|
veryclean: clean
|
2012-08-09 03:01:22 +02:00
|
|
|
cabal-dev clean && rm -rf pandoc-types citeproc-hs
|
2012-08-08 07:49:56 +02:00
|
|
|
|
|
|
|
pandoc-types:
|
|
|
|
git clone https://github.com/jgm/pandoc-types && \
|
|
|
|
cabal-dev add-source pandoc-types
|
|
|
|
|
2012-08-09 03:01:22 +02:00
|
|
|
citeproc-hs: pandoc-types
|
2012-09-27 01:26:54 +02:00
|
|
|
darcs get --lazy http://gorgias.mine.nu/repos/citeproc-hs && \
|
2012-08-08 07:49:56 +02:00
|
|
|
cabal-dev add-source citeproc-hs
|
|
|
|
|
2012-08-14 19:01:33 +02:00
|
|
|
install:
|
2012-09-15 19:44:59 +02:00
|
|
|
cabal-dev install --enable-tests --enable-benchmarks
|