Add STRIP macro to allow overriding strip on make install

This commit is contained in:
Howard Chu 2005-04-14 08:57:07 +00:00
parent 5ef9978afe
commit 562916939e

View File

@ -17,6 +17,7 @@ SLAPTOOLS=slapadd slapcat slapdn slapindex slappasswd slaptest slapauth slapacl
PROGRAMS=slapd $(SLAPTOOLS) PROGRAMS=slapd $(SLAPTOOLS)
XPROGRAMS=sslapd libbackends.a .backend liboverlays.a XPROGRAMS=sslapd libbackends.a .backend liboverlays.a
XSRCS=version.c XSRCS=version.c
STRIP=-s
SUBDIRS=back-* shell-backends slapi overlays SUBDIRS=back-* shell-backends slapi overlays
@ -361,7 +362,7 @@ install-local-srv: install-slapd install-tools \
install-slapd: FORCE install-slapd: FORCE
-$(MKDIR) $(DESTDIR)$(libexecdir) -$(MKDIR) $(DESTDIR)$(libexecdir)
-$(MKDIR) $(DESTDIR)$(localstatedir)/run -$(MKDIR) $(DESTDIR)$(localstatedir)/run
$(LTINSTALL) $(INSTALLFLAGS) -s -m 755 \ $(LTINSTALL) $(INSTALLFLAGS) $(STRIP) -m 755 \
slapd$(EXEEXT) $(DESTDIR)$(libexecdir) slapd$(EXEEXT) $(DESTDIR)$(libexecdir)
@for i in $(SUBDIRS); do \ @for i in $(SUBDIRS); do \
if test -d $$i -a -f $$i/Makefile ; then \ if test -d $$i -a -f $$i/Makefile ; then \