Skip to content

Commit

Permalink
build: provide install-strip make target
Browse files Browse the repository at this point in the history
Do not strip executables by default.

Fix #811
  • Loading branch information
martanne committed Feb 26, 2020
1 parent 9e19668 commit bdfea7e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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 \
Expand All @@ -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

0 comments on commit bdfea7e

Please sign in to comment.