]> git.sur5r.net Git - openldap/blobdiff - clients/rcpt500/Makefile.in
Add configure tests for ssize_t and caddr_t and remove NT preamble
[openldap] / clients / rcpt500 / Makefile.in
index 5af6536f915447af999b9f5ea226e3a01989e691..a1919f84b15af8f9646f072d240146bd6d67e726 100644 (file)
@@ -1,6 +1,8 @@
 # $OpenLDAP$
 
-PROGRAMS= rcpt500
+UNIX_PRGS = rcpt500
+PROGRAMS = $(@PLAT@_PRGS)
+
 SRCS= main.c cmds.c help.c query.c
 XSRCS= version.c
 OBJS= main.o cmds.o help.o query.o
@@ -20,7 +22,13 @@ version.c: ${OBJS} $(LDAP_LIBDEPEND)
        $(MKVERSION) rcpt500 > $@
 
 install-local: $(PROGRAMS) rcpt500.help FORCE
-       -$(MKDIR) $(libexecdir) $(datadir)
-       $(LTINSTALL) $(INSTALLFLAGS) -m 755 rcpt500 $(libexecdir)
-       -$(MV) $(datadir)/rcpt500.help $(datadir)/rcpt500.help-
-       $(INSTALL) $(INSTALLFLAGS) -m 644 $(srcdir)/rcpt500.help $(datadir)
+       -$(MKDIR) $(DESTDIR)$(libexecdir) $(DESTDIR)$(datadir)
+       @(                                                              \
+           for prg in $(PROGRAMS); do                                  \
+               $(LTINSTALL) $(INSTALLFLAGS) -m 755 $$prg$(EXEEXT)      \
+                   $(DESTDIR)$(libexecdir);                            \
+           done                                                        \
+       )
+       -$(MV) $(DESTDIR)$(datadir)/rcpt500.help $(DESTDIR)$(datadir)/rcpt500.help-
+       $(INSTALL) $(INSTALLFLAGS) -m 644 $(srcdir)/rcpt500.help $(DESTDIR)$(datadir)
+