vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 8b15e6ec23577ddbcfc41c896ab3be1725636c26 parent aeab81f381a68068566f420b2b26a670ca474edd Author: Marc André Tanner <mat@brain-dump.org> Date: Wed, 31 May 2017 15:00:45 +0200 build: add a make docker target This should produce a self-contained vis binary for x86_64 Linux. Diffstat:
| M | Makefile | | | 12 | +++++++++++- |
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile @@ -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