1version?=$(shell grep '^Version:' pandoc.cabal | awk '{print $$2;}')
2pandoc=$(shell find dist -name pandoc -type f -exec ls -t {} \; | head -1)
3sourcefiles=$(shell find pandoc.hs src test -name '*.hs')
7 stack install --flag 'pandoc:embed_data_files' --fast --test --test-arguments='-j4 --hide-successes $(TESTARGS)'
10 stack install --flag 'pandoc:embed_data_files' --flag 'pandoc:weigh-pandoc' --flag 'pandoc:trypandoc' --bench --no-run-benchmarks --test --test-arguments='-j4 --hide-successes' --ghc-options '-Wall -Werror -fno-warn-unused-do-bind -O0 -j4'
15# Note: to accept current results of golden tests,
16# make test TESTARGS='--accept'
18 stack test --flag 'pandoc:embed_data_files' --fast --test-arguments='-j4 --hide-successes $(TESTARGS)'
21 stack bench --benchmark-arguments='$(BENCHARGS)'
24 stack build --flag 'pandoc:weigh-pandoc' && stack exec weigh-pandoc
27 for f in $(sourcefiles); do echo $$f; stylish-haskell -i $$f ; done
30 for f in $(sourcefiles); do echo $$f; hlint --verbose --refactor --refactor-options='-i -s' $$f; done
33 pandoc --filter extract-changes.hs changelog -t markdown_github | sed -e 's/\\#/#/g' | pbcopy
37 rm -rf "pandoc-${version}"
38 tar xvzf dist/pandoc-${version}.tar.gz
40 stack setup && stack test && cd .. && rm -rf "pandoc-${version}"
46 ./macos/make_macos_package.sh
48winpkg: pandoc-$(version)-windows.msi
50pandoc-$(version)-windows.msi:
51 wget 'https://ci.appveyor.com/api/projects/jgm/pandoc/artifacts/windows/pandoc-windows-i386.msi?branch=$(BRANCH)' -O pandoc.msi && \
52 osslsigncode sign -pkcs12 ~/Private/ComodoCodeSigning.exp2019.p12 -in pandoc.msi -i http://johnmacfarlane.net/ -t http://timestamp.comodoca.com/ -out $@ -askpass
55man/pandoc.1: MANUAL.txt man/pandoc.1.template
56 pandoc $< -t man -s --template man/pandoc.1.template \
57 --filter man/capitalizeHeaders.hs \
58 --filter man/removeNotes.hs \
59 --filter man/removeLinks.hs \
60 --variable version="pandoc $(version)" \
64 curl https://api.github.com/repos/jgm/pandoc/releases | \
65 jq -r '.[] | .assets | .[] | "\(.download_count)\t\(.name)"'
70.PHONY: deps quick full haddock install clean test bench changes_github macospkg dist prof download_stats reformat lint weigh
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list