aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 46c2be669..a2ed18d55 100644
--- a/Makefile
+++ b/Makefile
@@ -27,19 +27,26 @@ install: full
cabal copy
cabal register
-dist:
+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}"
-debpkg:
+debpkg: man/pandoc.1
./make_deb.sh
-osxpkg:
+osxpkg: man/pandoc.1
./make_osx_package.sh
+man/pandoc.1: README man/pandoc.1.template
+ pandoc $< -t man -s --template man/pandoc.1.template \
+ --filter man/capitalizeHeaders.hs \
+ --filter man/removeNotes.hs \
+ --filter man/removeLinks.hs \
+ -o $@
+
download_stats:
curl https://api.github.com/repos/jgm/pandoc/releases | \
jq '[.[] | .assets | .[] | {name: .name, download_count: .download_count}]'