]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Makefile.in: Use srcdir for installing rsync-ssl
authorHiroshi Takekawa <sian.ht@gmail.com>
Tue, 23 Jun 2020 10:17:53 +0000 (19:17 +0900)
committerWayne Davison <wayne@opencoder.net>
Tue, 23 Jun 2020 16:02:33 +0000 (09:02 -0700)
When building out of source tree, we can't find rsync-ssl in the current
directory and installation fails.  Fix it by using the srcdir variable for the
path to rsync-ssl.

Signed-off-by: Hiroshi Takekawa <sian.ht@gmail.com>
Makefile.in

index 6ca7d9ebc54f35a7aae42666ae7b249c432ac869..e13e241b34d2ebf141ed35215c00cad7aca0ab8f 100644 (file)
@@ -77,7 +77,7 @@ all: Makefile rsync$(EXEEXT) 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 $(srcdir)/rsync-ssl ${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