- $(RM) $@
- (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
- t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
- -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
- -e "s|%VERSION%|$${v}|" \
- < $(srcdir)/Versionldr.c > $@)
-
-install-local: ldapsearch ldapmodify ldapdelete ldapmodrdn ldapadd FORCE
- -$(MKDIR) -p $(bindir)
- $(INSTALL) $(INSTALLFLAGS) -m 755 ldapsearch $(bindir)
- $(INSTALL) $(INSTALLFLAGS) -m 755 ldapmodify $(bindir)
- $(INSTALL) $(INSTALLFLAGS) -m 755 ldapdelete $(bindir)
- $(INSTALL) $(INSTALLFLAGS) -m 755 ldapmodrdn $(bindir)
- $(RM) $(BINDIR)/ldapadd
- $(LN) $(BINDIR)/ldapmodify $(bindir)/ldapadd
+ @-$(RM) $@
+ $(MKVERSION) ldapmodrdn > $@
+
+install-local: FORCE
+ -$(MKDIR) $(DESTDIR)$(bindir)
+ @( \
+ for prg in $(PROGRAMS); do \
+ $(LTINSTALL) $(INSTALLFLAGS) -m 755 $$prg$(EXEEXT) \
+ $(DESTDIR)$(bindir); \
+ done \
+ )
+ $(RM) $(DESTDIR)$(bindir)/ldapadd$(EXEEXT)
+ $(LN) $(DESTDIR)$(bindir)/ldapmodify$(EXEEXT) $(DESTDIR)$(bindir)/ldapadd$(EXEEXT)
+