Commit graph

4 commits

Author SHA1 Message Date
John MacFarlane
5922237b58 static-linux: allow setting TREE to build from arbitrary git commit. 2017-03-19 10:24:25 +01:00
John MacFarlane
86f400d57f Improved static linux build.
Also build pandoc-citeproc.
Put pandoc and pandoc-citeproc executables into a version-labeled tgz.
2017-03-19 09:16:22 +01:00
John MacFarlane
037af1b95b Improved static linux alpine build.
* Use -split-objs (reduces executable size from ~50M to 32M), at
  cost of much slower compilation.
* Moved building of prereqs from CMD to RUN, so they can be cached.
  Doing 'make build' will fetch the latest from git and rebuild
  pandoc, but dependencies needn't be rebuilt.
2017-03-17 16:02:49 +01:00
John MacFarlane
63c96f8b91 Added static-linux directory.
This provides a Makefile and Dockerfile sufficient for
producing a completely statically linked linux executable
for maximum portability.

If docker is installed, this should suffice:

make setup
make build

The binary will be placed in artifacts/.
2017-03-17 14:19:08 +01:00