aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-03-21 22:21:02 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-03-21 22:41:27 +0100
commit9b3cd2462a48ca942309e24f511db2ea1fddc95b (patch)
tree009da77782848cfc8e6c1e83a49a0a1d7e6a08bb /GNUmakefile
parent83b495b0c10f065897cc420a92afc7ac41448c26 (diff)
downloadvis-9b3cd2462a48ca942309e24f511db2ea1fddc95b.tar.gz
vis-9b3cd2462a48ca942309e24f511db2ea1fddc95b.tar.xz
vis: also lookup Lua support files relative to the binary location
This simplifies deployment of vis on remote systems without root access. The idea is to extract a statically linked binary together with the lexer syntax files into some directory, adjust $PATH to include it and have everything just work. For now this uses /proc/self/exe and thus only works on Linux based systems.
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile
index f6e57d7..4773324 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -147,7 +147,7 @@ local: clean dependencies
CFLAGS_TERMKEY= LDFLAGS_TERMKEY=-ltermkey \
CFLAGS_LUA="-DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DLUA_COMPAT_ALL" \
LDFLAGS_LUA="-llua -lm -ldl"
- @echo Run with: LD_LIBRARY_PATH=$(DEPS_LIB) VIS_PATH=. ./vis
+ @echo Run with: LD_LIBRARY_PATH=$(DEPS_LIB) ./vis
standalone: clean dependency/sources/install-libmusl
PATH=$(DEPS_BIN):$$PATH PKG_CONFIG_PATH= PKG_CONFIG_LIBDIR= $(MAKE) \
@@ -160,6 +160,5 @@ standalone: clean dependency/sources/install-libmusl
LDFLAGS_LUA="-llua -lm -ldl" \
CONFIG_ACL=0 CFLAGS_ACL= LDFLAGS_ACL= \
CONFIG_SELINUX=0 CFLAGS_SELINUX= LDFLAGS_SELINUX=
- @echo Run with: VIS_PATH=. ./vis
.PHONY: standalone dependencies dependencies-full local \ No newline at end of file