From 9ef3d77652e54e5d3872c1ccfe29918ae2a703b1 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 27 Dec 2017 09:34:30 -0800 Subject: Makefile: Add 'pandoc-templates' target. --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 46afc990d..5fc2b3d66 100644 --- a/Makefile +++ b/Makefile @@ -85,7 +85,15 @@ download_stats: curl https://api.github.com/repos/jgm/pandoc/releases | \ jq -r '.[] | .assets | .[] | "\(.download_count)\t\(.name)"' +pandoc-templates: + rm ../pandoc-templates/default.* ; \ + cp data/templates/default.* ../pandoc-templates/ ; \ + pushd ../pandoc-templates/ && \ + git add default.* && \ + git commit -m "Updated templates for pandoc $(version)" && \ + popd + clean: stack clean -.PHONY: deps quick full haddock install clean test bench changes_github macospkg dist prof download_stats reformat lint weigh doc/lua-filters.md packages +.PHONY: deps quick full haddock install clean test bench changes_github macospkg dist prof download_stats reformat lint weigh doc/lua-filters.md packages pandoc-templates -- cgit v1.2.3