- @DEPEND=no ; DEPEND_LDBM= ; DEPEND_ISODE= ; \
- if [ "$(BUILD_LDBM)" = "yes" ]; then \
- DEPEND_LDBM="$(SRCS)"; \
- DEPEND=yes ; \
- fi; \
- if [ "$(HAVE_ISODE)" = "yes" ]; then \
- DEPEND_ISODE="$(ISODEINCLUDEFLAG) chlog2replog.c $(EDB2LDIFSRCS)"; \
- DEPEND=yes ; \
- fi; \
- if [ "$$DEPEND" = "yes" ]; then \
- $(MKDEP) $(DEFS) $(DEFINES) $$DEPEND_ISODE $$DEPEND_LDBM; \
- else \
- exit 0; \
- fi
-
-install-local: install-ldbm install-isode FORCE
-
-install-ldbm: FORCE
- @-$(MKDIR) -p $(sbindir)
- @if [ "$(BUILD_LDBM)" = "yes" ]; then \
- $(INSTALL) $(INSTALLFLAGS) -m 755 ldif2ldbm $(sbindir) ; \
- $(INSTALL) $(INSTALLFLAGS) -m 755 ldif2index $(sbindir) ; \
- $(INSTALL) $(INSTALLFLAGS) -m 755 ldif2id2entry $(sbindir) ; \
- $(INSTALL) $(INSTALLFLAGS) -m 755 ldif2id2children $(sbindir) ; \
- $(INSTALL) $(INSTALLFLAGS) -m 755 ldbmcat $(sbindir) ; \
- $(INSTALL) $(INSTALLFLAGS) -m 755 ldif $(sbindir) ; \
- $(INSTALL) $(INSTALLFLAGS) -m 755 centipede $(sbindir) ; \
- $(INSTALL) $(INSTALLFLAGS) -m 755 ldbmtest $(sbindir) ; \
- else \
- exit 0 ; \
- fi
-
-install-isode: FORCE
- @-$(MKDIR) -p $(sbindir)
- @if [ "$(HAVE_ISODE)" = "yes" ]; then \
- $(INSTALL) $(INSTALLFLAGS) -m 755 edb2ldif $(sbindir); \
- $(INSTALL) $(INSTALLFLAGS) -m 755 chlog2replog $(sbindir); \
- else \
- exit 0 ; \
- fi
-
-all-common: all-local FORCE
-install-common: all-common install-local FORCE
-depend-common: depend-local FORCE
-clean-common: clean-local FORCE
-veryclean-common: clean-common veryclean-local FORCE
+ $(MKDEP) $(DEFS) $(DEFINES) $(SRCS)
+
+install-local: FORCE
+ -$(MKDIR) $(DESTDIR)$(sbindir)
+ @for bin in $(PROGRAMS); do \
+ $(LTINSTALL) $(INSTALLFLAGS) -s -m 755 \
+ $$bin$(EXEEXT) $(DESTDIR)$(sbindir); \
+ done
+