]> git.sur5r.net Git - openldap/commitdiff
Fix install rule
authorHoward Chu <hyc@openldap.org>
Thu, 18 Dec 2003 20:26:05 +0000 (20:26 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 18 Dec 2003 20:26:05 +0000 (20:26 +0000)
servers/slapd/overlays/Makefile.in

index 7e6c0e9bcfc506077f86a69643e898dac6247965..efce0408a702c5f74054972df397badb41010c6e 100644 (file)
@@ -43,10 +43,10 @@ rwm.la : rwm.lo $(@PLAT@_LINK_LIBS)
        $(LTLINK_MOD) -module -o $@ rwm.lo rwmconf.lo rwmdn.lo rwmmap.lo version.lo $(LINK_LIBS)
 
 install-local: $(PROGRAMS)
-       @-$(MKDIR) $(DESTDIR)$(moduledir)
-       @for i in $? ; do \
-               $(LTINSTALL) $(INSTALLFLAGS) -m 755 $$i $(DESTDIR)$(moduledir);\
-       done
+       @if test -n "$?" ; then \
+               $(MKDIR) $(DESTDIR)$(moduledir); \
+               $(LTINSTALL) $(INSTALLFLAGS) -m 755 $? $(DESTDIR)$(moduledir);\
+       fi
 
 MKDEPFLAG = -l