diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-05-31 15:00:45 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-05-31 15:38:07 +0200 |
| commit | 04486663595085e91e5e766d58181c6e1b517c17 (patch) | |
| tree | 7aa29e2e096a5753932192be81dd23f4ede57fc7 /Makefile | |
| parent | fae92a04cdfd5ebe8e07865446732b0287f4553a (diff) | |
| download | vis-04486663595085e91e5e766d58181c6e1b517c17.tar.gz vis-04486663595085e91e5e766d58181c6e1b517c17.tar.xz | |
build: add a make docker target
This should produce a self-contained vis binary for x86_64 Linux.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -86,6 +86,16 @@ vis-single-payload.inc: $(EXECUTABLES) lua/* vis-single: vis-single.c vis-single-payload.inc ${CC} ${CFLAGS} ${CFLAGS_AUTO} ${CFLAGS_STD} ${CFLAGS_EXTRA} $< ${LDFLAGS} ${LDFLAGS_STD} ${LDFLAGS_AUTO} -larchive -lacl -lbz2 -llzma -o $@ +docker: clean + docker rm -f vis || true + docker build -t vis . + docker run --rm -d --name vis vis tail -f /dev/null + docker cp . vis:/tmp/vis + docker exec vis ./configure CC='cc --static' + docker exec vis make clean vis-single + docker cp vis:/tmp/vis/vis-single vis + docker kill vis + debug: clean @$(MAKE) CFLAGS_EXTRA='${CFLAGS_EXTRA} ${CFLAGS_DEBUG}' @@ -172,4 +182,4 @@ uninstall: @echo removing support files from ${DESTDIR}${SHAREPREFIX}/vis @rm -rf ${DESTDIR}${SHAREPREFIX}/vis -.PHONY: all clean dist install uninstall debug profile coverage test test-update luadoc luadoc-all luacheck man +.PHONY: all clean dist install uninstall debug profile coverage test test-update luadoc luadoc-all luacheck man docker |
