aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-07-24 09:57:27 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2020-08-11 21:33:21 -0700
commitc9900278321a14071c6721fdfb702e39ca5e2a38 (patch)
tree1724171740a0569330e7c48d055e13735878a4b4 /Makefile
parent5d4932d7ef8e1edec31d99661ffe8e2f4a77244f (diff)
downloadpandoc-c9900278321a14071c6721fdfb702e39ca5e2a38.tar.gz
Linux rc build: use ghc-musl container.
This simplifies our build process a bit (over using a customized alpine container). Use new `--enable-executable-static` flag in build. make_artifacts.sh: Fix deprecated find -perm syntax.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d07d24026..eef7183fe 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ BRANCH?=master
RESOLVER?=lts-13
GHCOPTS=-fdiagnostics-color=always
WEBSITE=../../web/pandoc.org
+REVISION?=1
quick:
stack install --ghc-options='$(GHCOPTS)' --install-ghc --flag 'pandoc:embed_data_files' --fast --test --ghc-options='-j +RTS -A64m -RTS' --test-arguments='-j4 --hide-successes $(TESTARGS)'
@@ -70,8 +71,12 @@ checkdocs: README.md
! grep -n -e "\t" MANUAL.txt changelog
debpkg: man/pandoc.1
- make -C linux && \
- cp linux/artifacts/pandoc-$(version)-*.* .
+ docker run -v `pwd`:/mnt \
+ -v `pwd`/linux/artifacts:/artifacts \
+ -e REVISION=$(REVISION) \
+ -w /mnt \
+ utdemir/ghc-musl:v12-libgmp-ghc8101 bash \
+ /mnt/linux/make_artifacts.sh
macospkg: man/pandoc.1
./macos/make_macos_package.sh