Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 63 lines (47 sloc) 1.488 kb
c8fa545 John MacFarlane Added 'dist' target to Makefile that does a sanity check on tarball.
authored
1 version=$(shell grep '^Version:' pandoc.cabal | awk '{print $$2;}')
80a610b John MacFarlane Added new Makefile targets.
authored
2 makemanpages=$(shell find dist -type f -name make-pandoc-man-pages)
3 ifeq "${makemanpages}" ""
4 makemanpages=@echo "You need to 'cabal configure -fmake-pandoc-man-pages && cabal build'" && exit 1
5 endif
0d9b35a John MacFarlane Minor Makefile tweaks.
authored
6 setup=dist/setup/setup
a0e795f John MacFarlane Added Makefile to rebuild man pages.
authored
7 MANPAGES=man/man1/pandoc.1 man/man5/pandoc_markdown.5
658f01f John MacFarlane Added bindist target to Makefile.
authored
8 PREFIX ?= /usr/local
80a610b John MacFarlane Added new Makefile targets.
authored
9
fd8ad04 John MacFarlane Makefile: Added 'quick' target.
authored
10 quick:
11 cabal configure --enable-tests --disable-optimization
12 cabal build
13
112b2f9 John MacFarlane Makefile tweaks.
authored
14 full:
15 cabal configure --enable-tests --enable-optimization -ftrypandoc -fmake-pandoc-man-pages -fembed_data_files --enable-benchmarks
16 cabal build
17 cabal haddock
80a610b John MacFarlane Added new Makefile targets.
authored
18
a79d477 John MacFarlane More Makefile tweaks.
authored
19 deps:
20 cabal install --only-dependencies --enable-tests -ftrypandoc -fmake-pandoc-man-pages -fembed_data_files --enable-benchmarks
21
112b2f9 John MacFarlane Makefile tweaks.
authored
22 prof:
23 cabal configure --enable-library-profiling --enable-executable-profiling --enable-optimization --enable-tests
80a610b John MacFarlane Added new Makefile targets.
authored
24 cabal build
25
26 test:
27 cabal test
28
29 bench:
30 cabal bench
31
112b2f9 John MacFarlane Makefile tweaks.
authored
32 install: full
9c8588f John MacFarlane Makefile: Fixed install target to use copy, register.
authored
33 cabal copy
34 cabal register
80a610b John MacFarlane Added new Makefile targets.
authored
35
4455905 John MacFarlane Makefile: simplified 'make dist'.
authored
36 dist: man
37 cabal sdist
c8fa545 John MacFarlane Added 'dist' target to Makefile that does a sanity check on tarball.
authored
38 rm -rf "pandoc-${version}"
39 tar xvzf dist/pandoc-${version}.tar.gz
40 cd pandoc-${version}
41 cabal configure ${CABALARGS} && cabal build && cabal test && cd .. && rm -rf "pandoc-${version}"
42
8dfc372 John MacFarlane Changed bindist target to debpkg.
authored
43 debpkg:
44 ./make_deb.sh
658f01f John MacFarlane Added bindist target to Makefile.
authored
45
46 man: $(MANPAGES)
a0e795f John MacFarlane Added Makefile to rebuild man pages.
authored
47
fa0d9a2 John MacFarlane Makefile: added osxpkg target.
authored
48 osxpkg:
49 ./make_osx_package.sh
50
58b3210 John MacFarlane Makefile: Add README as dependency of man pages.
authored
51 %.1: %.1.template README
a0e795f John MacFarlane Added Makefile to rebuild man pages.
authored
52 ${makemanpages}
53
58b3210 John MacFarlane Makefile: Add README as dependency of man pages.
authored
54 %.5: %.5.template README
a0e795f John MacFarlane Added Makefile to rebuild man pages.
authored
55 ${makemanpages}
56
57 clean:
112b2f9 John MacFarlane Makefile tweaks.
authored
58 cabal clean
658f01f John MacFarlane Added bindist target to Makefile.
authored
59 -rm $(MANPAGES)
19b7441 John MacFarlane Fixed Makefile tab
authored
60 -rm -rf $(BINDIST) $(BINDIST).tar.gz
a0e795f John MacFarlane Added Makefile to rebuild man pages.
authored
61
658f01f John MacFarlane Added bindist target to Makefile.
authored
62 .PHONY: deps quick full install man clean test bench haddock osxpkg dist bindist prof
Something went wrong with that request. Please try again.