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'.
|
|
|
|
|
2013-01-25 20:09:12 +01:00
|
|
|
.PHONY: prep submodules all quick bench clean veryclean install sdist
|
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
|
|
|
|
|
2013-07-14 00:06:09 +02:00
|
|
|
test: all
|
|
|
|
cabal test
|
|
|
|
|
2012-09-06 22:30:34 +02:00
|
|
|
prof:
|
2013-01-26 02:53:39 +01:00
|
|
|
cabal-dev configure --disable-tests --enable-library-profiling --enable-executable-profiling && cabal-dev build
|
2012-09-06 22:30:34 +02:00
|
|
|
|
2013-06-25 19:39:08 +02:00
|
|
|
prep: submodules pandoc-types citeproc-hs
|
2013-01-02 20:41:02 +01:00
|
|
|
(cabal-dev --version || (cabal update && cabal install cabal-dev)) && \
|
2012-10-03 01:38:46 +02:00
|
|
|
cabal-dev 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
|
|
|
|
2013-01-02 20:41:02 +01:00
|
|
|
submodules:
|
|
|
|
git submodule update --init
|
|
|
|
|
2012-08-08 07:49:56 +02:00
|
|
|
quick:
|
|
|
|
cabal-dev configure --enable-tests --disable-optimization && cabal-dev build
|
|
|
|
|
2012-12-31 01:05:02 +01:00
|
|
|
relocatable:
|
|
|
|
cabal-dev configure -fembed_data_files && cabal-dev build
|
|
|
|
|
2012-08-08 07:49:56 +02:00
|
|
|
bench:
|
|
|
|
cabal-dev configure --enable-benchmarks && cabal-dev build
|
|
|
|
|
2013-01-24 04:23:05 +01:00
|
|
|
sdist:
|
|
|
|
dist/setup/setup sdist
|
|
|
|
# cabal sdist won't work, see https://github.com/haskell/cabal/issues/403
|
|
|
|
|
2012-08-08 07:49:56 +02:00
|
|
|
clean:
|
2012-09-27 02:08:31 +02:00
|
|
|
cabal-dev clean
|
|
|
|
|
|
|
|
veryclean: clean
|
2013-08-15 21:20:57 +02:00
|
|
|
rm -rf pandoc-types citeproc-hs dist cabal-dev
|
2012-08-08 07:49:56 +02:00
|
|
|
|
2013-06-25 19:39:08 +02:00
|
|
|
pandoc-types:
|
|
|
|
git clone https://github.com/jgm/pandoc-types && \
|
|
|
|
cabal-dev add-source pandoc-types
|
2012-08-08 07:49:56 +02:00
|
|
|
|
2013-06-25 19:39:08 +02:00
|
|
|
citeproc-hs: pandoc-types
|
|
|
|
darcs get --lazy http://gorgias.mine.nu/repos/citeproc-hs && \
|
|
|
|
cabal-dev add-source citeproc-hs
|
2012-08-08 07:49:56 +02:00
|
|
|
|
2012-08-14 19:01:33 +02:00
|
|
|
install:
|
2013-07-14 00:06:09 +02:00
|
|
|
cabal-dev install --enable-tests
|