aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2020-02-26 07:31:26 +0100
committerMarc André Tanner <mat@brain-dump.org>2020-02-26 07:52:39 +0100
commitbdfea7e6c1d1a7ad5b3d479bb2c30c7e610f2ee6 (patch)
treec96891c9fc0c0b5cb88405dab264b417e7f06490
parent9e1966899263089d6c27682999a8c5e579aaaa16 (diff)
downloadvis-bdfea7e6c1d1a7ad5b3d479bb2c30c7e610f2ee6.tar.gz
vis-bdfea7e6c1d1a7ad5b3d479bb2c30c7e610f2ee6.tar.xz
build: provide install-strip make target
Do not strip executables by default. Fix #811
-rw-r--r--Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 7e9b0c5..6c8d31e 100644
--- a/Makefile
+++ b/Makefile
@@ -145,10 +145,6 @@ luacheck:
@luacheck --config .luacheckrc lua test/lua | less -RFX
install: $(ELF)
- @echo stripping executable
- @for e in $(ELF); do \
- ${STRIP} "$$e"; \
- done
@echo installing executable files to ${DESTDIR}${PREFIX}/bin
@mkdir -p ${DESTDIR}${PREFIX}/bin
@for e in ${EXECUTABLES}; do \
@@ -174,6 +170,12 @@ install: $(ELF)
chmod 644 "${DESTDIR}${MANPREFIX}/man1/$$m"; \
done
+install-strip: install
+ @echo stripping executables
+ @for e in $(ELF); do \
+ ${STRIP} ${DESTDIR}${PREFIX}/bin/"$$e"; \
+ done
+
uninstall:
@echo removing executable file from ${DESTDIR}${PREFIX}/bin
@for e in ${EXECUTABLES}; do \
@@ -190,4 +192,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 docker-kill docker docker-clean
+.PHONY: all clean dist install install-strip uninstall debug profile coverage test test-update luadoc luadoc-all luacheck man docker-kill docker docker-clean