Description: strip debug symbols in install-strip but not in install
 Distros such as Debian would like to preserve debug symbols and
 recommend against stripping objects in the default install target.
 .
 https://www.gnu.org/prep/standards/html_node/Standard-Targets.html
 "Do not strip executables when installing them. [...] Users that need
 stripped binaries may invoke the install-strip target to do that."
Author: Juhani Numminen <juhaninumminen0@gmail.com>
Forwarded: https://sourceforge.net/p/biosig/code/merge-requests/7/
Last-Update: 2021-01-14

--- a/biosig4c++/Makefile.in
+++ b/biosig4c++/Makefile.in
@@ -893,7 +893,7 @@
 #	INSTALL and DE-INSTALL
 #############################################################
 
-.PHONY: clean install install_libbiosig remove install_sigviewer asc bin testscp testhl7 testbin test test6 zip
+.PHONY: clean install install-strip install_libbiosig remove install_sigviewer asc bin testscp testhl7 testbin test test6 zip
 
 clean:
 	-$(DELETE) *~
@@ -941,13 +941,11 @@
 	install -d 			$(DESTDIR)$(libdir)/pkgconfig/
 	install libbiosig.a		$(DESTDIR)$(libdir)
 	install libphysicalunits.a 	$(DESTDIR)$(libdir)
-	strip -x $(DESTDIR)$(libdir)/libbiosig.a $(DESTDIR)$(libdir)/libphysicalunits.a
 	install -m644 libbiosig.pc	$(DESTDIR)$(libdir)/pkgconfig/
 
 install_libbiosig.$(DLEXT): libbiosig$(FULLDLEXT) libbiosig.$(DLEXT)
 	install -d 			$(DESTDIR)$(libdir)/pkgconfig/
 	install libbiosig$(FULLDLEXT)  $(DESTDIR)$(libdir)
-	strip -x $(DESTDIR)$(libdir)/libbiosig$(FULLDLEXT)
 	(cd $(DESTDIR)$(libdir) && ln -sf libbiosig$(FULLDLEXT) libbiosig${SONAMEVERSION}.$(DLEXT))
 ifneq (Darwin,$(shell uname))
 	cd $(DESTDIR)$(libdir) && ln -sf libbiosig$(FULLDLEXT) libbiosig.$(DLEXT)
@@ -956,6 +954,11 @@
 
 install: install_libbiosig.$(DLEXT) install_libbiosig.a install_headers install_tools
 
+install-strip: install
+	-strip -x $(DESTDIR)$(libdir)/libbiosig.a
+	-strip -x $(DESTDIR)$(libdir)/libphysicalunits.a
+	-strip -x $(DESTDIR)$(libdir)/libbiosig$(FULLDLEXT)
+
 install_tools: tools doc/save2gdf.1
 	install -d 			$(DESTDIR)$(bindir)
 	install ${BIN_OBJECTS}		$(DESTDIR)$(bindir)
