Eli Zaretskii eliz@gnu.org writes:
And one more gripe: why doesn't Nettle have the standard 'install-strip' target in its Makefile?
TL;DR: I guess that's an oversight, I'd need sme advice to get it right.
What's the simplest way to to that? Is it enough to patch the top-level Makefile.in like below? (Automake seems to produce something slightly more complicated).
And then exactly what is it that should be stripped? I see that the make targets for installing both shared and static libraries use $(INSTALL_DATA) rather than $(INSTALL_PROGRAM), so libraries won't be affected. Those targets are a decade old, but I think it followed GNU standards at the time.
When handling libraries, I imagine one need to be a little careful to use the right one of
strip strip -s strip --strip-debug strip --strip-unneded
and I'm not sure which is implied by install -s.
Regards, /Niels
diff --git a/Makefile.in b/Makefile.in index 135542f..2103665 100644 --- a/Makefile.in +++ b/Makefile.in @@ -50,6 +50,9 @@ all check install uninstall: set -e; for d in $(SUBDIRS); do \ echo "Making $@ in $$d" ; (cd $$d && $(MAKE) $@); done
+install-strip: + $(MAKE) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" install + clean distclean mostlyclean maintainer-clean tags: set -e; for d in $(SUBDIRS); do \ echo "Making $@ in $$d" ; (cd $$d && $(MAKE) $@); done