]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Tweak rrsync rules in the Makefile.
authorWayne Davison <wayne@opencoder.net>
Wed, 19 Jan 2022 07:01:48 +0000 (23:01 -0800)
committerWayne Davison <wayne@opencoder.net>
Wed, 19 Jan 2022 07:13:22 +0000 (23:13 -0800)
Makefile.in
configure.ac
packaging/pkglib.py

index 1b4ea783373204d4819bac64f6933d0f637a5226..8817edabd0c8fe57393a80e2ba0c98d74236812c 100644 (file)
@@ -35,7 +35,7 @@ ASM_x86_64=lib/md5-asm-x86_64.o
 
 GENFILES=configure.sh aclocal.m4 config.h.in rsync.1 rsync.1.html \
         rsync-ssl.1 rsync-ssl.1.html rsyncd.conf.5 rsyncd.conf.5.html \
-        rrsync.1 rrsync.1.html
+        @GEN_RRSYNC@
 HEADERS=byteorder.h config.h errcode.h proto.h rsync.h ifuncs.h itypes.h inums.h \
        lib/pool_alloc.h lib/mdigest.h lib/md-defines.h
 LIBOBJ=lib/wildmatch.o lib/compat.o lib/snprintf.o lib/mdfour.o lib/md5.o \
index 1e1bcc7845c548c2ca7c5aed85a9ec8924492d93..7031283a997778ca25b8cb8877e7421e4345fa0c 100644 (file)
@@ -142,6 +142,7 @@ if test x"$with_rrsync" != x"yes"; then
 else
     MAKE_RRSYNC='rrsync'
     MAKE_RRSYNC_1='rrsync.1'
+    GEN_RRSYNC='rrsync.1 rrsync.1.html'
 fi
 AC_SUBST(with_rrsync)
 
@@ -1257,6 +1258,7 @@ AC_SUBST(BUILD_POPT)
 AC_SUBST(BUILD_ZLIB)
 AC_SUBST(MAKE_RRSYNC)
 AC_SUBST(MAKE_RRSYNC_1)
+AC_SUBST(GEN_RRSYNC)
 AC_SUBST(MAKE_MAN)
 
 AC_CHECK_FUNCS(_acl __acl _facl __facl)
index 57cc2012dc4a18075ba79a3ba3a39cae32a89758..52f3d892b430163d890337a9e203d59c025f1a40 100644 (file)
@@ -181,7 +181,7 @@ def mandate_gensend_hook():
             die('Please add a "make gensend" into your', hook, 'script.')
 
 
-# Snag the GENFILES values out of the Makefile.in file and return them as a list.
+# Snag the GENFILES values out of the Makefile file and return them as a list.
 def get_gen_files(want_dir_plus_list=False):
     cont_re = re.compile(r'\\\n')
 
@@ -189,7 +189,7 @@ def get_gen_files(want_dir_plus_list=False):
 
     auto_dir = os.path.join('auto-build-save', cmd_txt('git rev-parse --abbrev-ref HEAD').out.strip().replace('/', '%'))
 
-    with open('Makefile.in', 'r', encoding='utf-8') as fh:
+    with open(auto_dir + '/Makefile', 'r', encoding='utf-8') as fh:
         for line in fh:
             if not gen_files:
                 chk = re.sub(r'^GENFILES=', '', line)