Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 58 lines (43 sloc) 1.472 kB
c8fa545 Added 'dist' target to Makefile that does a sanity check on tarball.
John MacFarlane authored
1 version=$(shell grep '^Version:' pandoc.cabal | awk '{print $$2;}')
a04c15a @jgm New method for building man pages.
authored
2 pandoc=$(shell find dist -name pandoc -type f -exec ls -t {} \; | head -1)
80a610b @jgm Added new Makefile targets.
authored
3
fd8ad04 @jgm Makefile: Added 'quick' target.
authored
4 quick:
668833d @jgm Ignore sandbox on 'make quick'
authored
5 cabal --ignore-sandbox configure --enable-tests -fembed_data_files --disable-optimization
fd8ad04 @jgm Makefile: Added 'quick' target.
authored
6 cabal build
7
112b2f9 Makefile tweaks.
John MacFarlane authored
8 full:
a04c15a @jgm New method for building man pages.
authored
9 cabal configure --enable-tests --enable-optimization -ftrypandoc -fembed_data_files --enable-benchmarks
112b2f9 Makefile tweaks.
John MacFarlane authored
10 cabal build
11 cabal haddock
80a610b @jgm Added new Makefile targets.
authored
12
a79d477 @jgm More Makefile tweaks.
authored
13 deps:
a04c15a @jgm New method for building man pages.
authored
14 cabal install --only-dependencies --enable-tests -ftrypandoc -fembed_data_files --enable-benchmarks
a79d477 @jgm More Makefile tweaks.
authored
15
112b2f9 Makefile tweaks.
John MacFarlane authored
16 prof:
17 cabal configure --enable-library-profiling --enable-executable-profiling --enable-optimization --enable-tests
80a610b @jgm Added new Makefile targets.
authored
18 cabal build
19
20 test:
21 cabal test
22
23 bench:
24 cabal bench
25
112b2f9 Makefile tweaks.
John MacFarlane authored
26 install: full
9c8588f @jgm Makefile: Fixed install target to use copy, register.
authored
27 cabal copy
28 cabal register
80a610b @jgm Added new Makefile targets.
authored
29
79764df @jgm Added pandoc.1 to repository. Don't build as part of cabal build.
authored
30 dist: man/pandoc.1
4455905 @jgm Makefile: simplified 'make dist'.
authored
31 cabal sdist
c8fa545 Added 'dist' target to Makefile that does a sanity check on tarball.
John MacFarlane authored
32 rm -rf "pandoc-${version}"
33 tar xvzf dist/pandoc-${version}.tar.gz
34 cd pandoc-${version}
35 cabal configure ${CABALARGS} && cabal build && cabal test && cd .. && rm -rf "pandoc-${version}"
36
79764df @jgm Added pandoc.1 to repository. Don't build as part of cabal build.
authored
37 debpkg: man/pandoc.1
8dfc372 @jgm Changed bindist target to debpkg.
authored
38 ./make_deb.sh
658f01f Added bindist target to Makefile.
John MacFarlane authored
39
79764df @jgm Added pandoc.1 to repository. Don't build as part of cabal build.
authored
40 osxpkg: man/pandoc.1
fa0d9a2 @jgm Makefile: added osxpkg target.
authored
41 ./make_osx_package.sh
42
79764df @jgm Added pandoc.1 to repository. Don't build as part of cabal build.
authored
43 man/pandoc.1: README man/pandoc.1.template
44 pandoc $< -t man -s --template man/pandoc.1.template \
45 --filter man/capitalizeHeaders.hs \
46 --filter man/removeNotes.hs \
47 --filter man/removeLinks.hs \
48 -o $@
49
e1a6110 @jgm Added download_stats target to Makefile.
authored
50 download_stats:
51 curl https://api.github.com/repos/jgm/pandoc/releases | \
b74099c @jgm Makefile: prettier 'download_stats'.
authored
52 jq -r '.[] | .assets | .[] | "\(.download_count)\t\(.name)"'
e1a6110 @jgm Added download_stats target to Makefile.
authored
53
a0e795f @jgm Added Makefile to rebuild man pages.
authored
54 clean:
112b2f9 Makefile tweaks.
John MacFarlane authored
55 cabal clean
a0e795f @jgm Added Makefile to rebuild man pages.
authored
56
28cb505 @jgm Generate man page in cabal build process and include in data/.
authored
57 .PHONY: deps quick full install clean test bench osxpkg dist prof download_stats
Something went wrong with that request. Please try again.