aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7c16418f8..635ff18a2 100644
--- a/Makefile
+++ b/Makefile
@@ -23,16 +23,22 @@ test:
bench:
cabal bench
+changes_github:
+ pandoc --filter extract-changes.hs changelog -t markdown_github | pbcopy
+
install: full
cabal copy
cabal register
+stack:
+ stack install --test --stack-yaml stack.full.yaml
+
dist: man/pandoc.1
cabal sdist
rm -rf "pandoc-${version}"
tar xvzf dist/pandoc-${version}.tar.gz
cd pandoc-${version}
- cabal configure ${CABALARGS} && cabal build && cabal test && cd .. && rm -rf "pandoc-${version}"
+ stack setup && stack test && cd .. && rm -rf "pandoc-${version}"
.travis.yml: pandoc.cabal make_travis_yml.hs
runghc make_travis_yml.hs $< > $@
@@ -48,6 +54,7 @@ man/pandoc.1: README man/pandoc.1.template
--filter man/capitalizeHeaders.hs \
--filter man/removeNotes.hs \
--filter man/removeLinks.hs \
+ --variable version="pandoc $(version)" \
-o $@
download_stats:
@@ -57,4 +64,4 @@ download_stats:
clean:
cabal clean
-.PHONY: deps quick full install clean test bench osxpkg dist prof download_stats
+.PHONY: deps quick full install clean test bench changes_github osxpkg dist prof download_stats