From 773d6a17da6dc4306d266e89ba8a22479140a07d Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
Date: Mon, 20 Nov 2017 21:40:00 -0800
Subject: [PATCH] Added 'packages' target to Makefile.

---
 Makefile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index a9d42e6af..93da8e7cc 100644
--- a/Makefile
+++ b/Makefile
@@ -41,8 +41,11 @@ dist: man/pandoc.1
 	cd pandoc-${version}
 	stack setup && stack test && cd .. && rm -rf "pandoc-${version}"
 
+packages: winpkg debpkg macospkg
+
 debpkg: man/pandoc.1
-	make -C linux
+	make -C linux && \
+	cp linux/artifacts/pandoc-$(version)-*.* .
 
 macospkg: man/pandoc.1
 	./macos/make_macos_package.sh
@@ -85,4 +88,4 @@ download_stats:
 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
+.PHONY: deps quick full haddock install clean test bench changes_github macospkg dist prof download_stats reformat lint weigh doc/lua-filters.md packages