From bdfea7e6c1d1a7ad5b3d479bb2c30c7e610f2ee6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 26 Feb 2020 07:31:26 +0100 Subject: [PATCH] build: provide install-strip make target Do not strip executables by default. Fix #811 --- Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 7e9b0c50f..6c8d31eeb 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