Some more rsync-ssl improvements:
[rsync.git] / Makefile.in
index b5aa9862624dec8ac152b95b017665eb1217cb59..6ce3c74c62c4e4963519cefc6c76e7329613350c 100644 (file)
@@ -29,7 +29,7 @@ VERSION=@RSYNC_VERSION@
 .SUFFIXES:
 .SUFFIXES: .c .o
 
-GENFILES=configure.sh aclocal.m4 config.h.in proto.h proto.h-tstamp rsync.1 rsyncd.conf.5
+GENFILES=configure.sh aclocal.m4 config.h.in proto.h proto.h-tstamp rsync.1 rsync-ssl.1 rsyncd.conf.5
 HEADERS=byteorder.h config.h errcode.h proto.h rsync.h ifuncs.h itypes.h inums.h \
        lib/pool_alloc.h
 LIBOBJ=lib/wildmatch.o lib/compat.o lib/snprintf.o lib/mdfour.o lib/md5.o \
@@ -68,16 +68,14 @@ all: Makefile rsync$(EXEEXT) rsync-ssl stunnel-rsyncd.conf @MAKE_MAN@
 install: all
        -${MKDIR_P} ${DESTDIR}${bindir}
        ${INSTALLCMD} ${INSTALL_STRIP} -m 755 rsync$(EXEEXT) ${DESTDIR}${bindir}
+       ${INSTALLCMD} -m 755 rsync-ssl ${DESTDIR}${bindir}
+       ${INSTALLCMD} -m 755 rsync-ssl-rsh ${DESTDIR}${bindir}
        -${MKDIR_P} ${DESTDIR}${mandir}/man1
        -${MKDIR_P} ${DESTDIR}${mandir}/man5
        if test -f rsync.1; then ${INSTALLMAN} -m 644 rsync.1 ${DESTDIR}${mandir}/man1; fi
+       if test -f rsync-ssl.1; then ${INSTALLMAN} -m 644 rsync-ssl.1 ${DESTDIR}${mandir}/man1; fi
        if test -f rsyncd.conf.5; then ${INSTALLMAN} -m 644 rsyncd.conf.5 ${DESTDIR}${mandir}/man5; fi
 
-install-ssl-client: rsync-ssl
-       -${MKDIR_P} ${DESTDIR}${bindir}
-       ${INSTALLCMD} -m 755 rsync-ssl ${DESTDIR}${bindir}
-       ${INSTALLCMD} -m 755 rsync-ssl-rsh ${DESTDIR}${bindir}
-
 install-ssl-daemon: stunnel-rsyncd.conf
        -${MKDIR_P} ${DESTDIR}/etc/stunnel
        ${INSTALLCMD} -m 644 stunnel-rsyncd.conf ${DESTDIR}/etc/stunnel/rsyncd.conf
@@ -209,16 +207,28 @@ proto.h: proto.h-tstamp
 proto.h-tstamp: $(srcdir)/*.c $(srcdir)/lib/compat.c config.h
        awk -f $(srcdir)/mkproto.awk $(srcdir)/*.c $(srcdir)/lib/compat.c
 
-man: rsync.1 rsyncd.conf.5 man-copy
+man: rsync.1 rsync-ssl.1 rsyncd.conf.5 man-copy
 
 man-copy:
-       @if test -f rsync.1; then :; elif test -f $(srcdir)/rsync.1; then echo 'Copying srcdir rsync.1'; cp -p $(srcdir)/rsync.1 .; else echo "NOTE: rsync.1 cannot be created."; fi
-       @if test -f rsyncd.conf.5; then :; elif test -f $(srcdir)/rsyncd.conf.5; then echo 'Copying srcdir rsyncd.conf.5'; cp -p $(srcdir)/rsyncd.conf.5 .; else echo "NOTE: rsyncd.conf.5 cannot be created."; fi
+       @for fn in rsync.1 rsync-ssl.1 rsyncd.conf.5; do \
+           if test -f $$fn; then \
+               : ; \
+           elif test -f $(srcdir)/$$fn; then \
+               echo "Copying srcdir $$fn" ; \
+               cp -p $(srcdir)/$$fn . ; \
+           else \
+               echo "NOTE: $$fn cannot be created." ; \
+           fi ; \
+       done
 
 rsync.1: rsync.yo
        yodl2man -o rsync.1 $(srcdir)/rsync.yo
        -$(srcdir)/tweak_manpage rsync.1
 
+rsync-ssl.1: rsync-ssl.yo
+       yodl2man -o rsync-ssl.1 $(srcdir)/rsync-ssl.yo
+       -$(srcdir)/tweak_manpage rsync-ssl.1
+
 rsyncd.conf.5: rsyncd.conf.yo
        yodl2man -o rsyncd.conf.5 $(srcdir)/rsyncd.conf.yo
        -$(srcdir)/tweak_manpage rsyncd.conf.5