forked from jgm/pandoc-citeproc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (36 loc) · 1.36 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
stack:
cd ../pandoc && \
stack install --test --stack-yaml stack.full.yaml --ghc-options '-pgmPcpphs -optP--cpp';\
cd ../pandoc-citeproc
debug: deps
cabal configure --enable-tests -ftest_citeproc -fembed_data_files -fdebug --disable-optimization --ghc-options "-pgmPcpphs -optP--cpp"
cabal build
quick: deps
cabal configure --enable-tests -ftest_citeproc -fembed_data_files --disable-optimization --ghc-options "-pgmPcpphs -optP--cpp"
cabal build
full: deps man
cabal configure --enable-tests -ftest_citeproc -fembed_data_files --ghc-options "-pgmPcpphs -optP--cpp"
cabal build
man:
make -C man -B
deps:
cabal install --only-dependencies --enable-tests -ftest_citeproc -fembed_data_files
prof: deps
cabal configure --enable-library-profiling --enable-executable-profiling --enable-optimization --ghc-options "-pgmPcpphs -optP--cpp"
cabal build
install:
cabal copy
cabal register
test:
cabal test
clean:
cabal clean
update:
curl 'https://raw.githubusercontent.com/citation-style-language/styles/master/chicago-author-date.csl' > chicago-author-date.csl ; \
git clone 'https://github.com/citation-style-language/locales' locales-repo ; \
for x in locales-repo/*.xml; do cp $$x locales/; done ; \
rm -rf locales-repo; \
git add locales/*.xml; \
git add chicago-author-date.csl; \
git commit -a
.PHONY: quick full prof update clean install test deps man stack