blob: 038a67209554976a77d65db0d88eb3bda68b41e6 [file] [log] [blame]
Andrew Geissler475cb722020-07-10 16:00:51 -05001From 5ae38baadd40a996da3d19a147f37e7f1f3355bf Mon Sep 17 00:00:00 2001
2From: Ross Burton <ross.burton@intel.com>
3Date: Tue, 12 Apr 2016 15:51:54 +0100
4Subject: [PATCH] rsync: remove upstream's rebuild logic
5
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05006Remove the Makefile rules to reinvoke autoconf, they're not out-of-tree safe and
7generally overcomplicated, and we ensure that autoreconf is invoked if required.
8
9Upstream-Status: Inappropriate
10Signed-off-by: Ross Burton <ross.burton@intel.com>
11
Andrew Geissler475cb722020-07-10 16:00:51 -050012---
13 Makefile.in | 50 --------------------------------------------------
14 1 file changed, 50 deletions(-)
15
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050016diff --git a/Makefile.in b/Makefile.in
Andrew Geissler475cb722020-07-10 16:00:51 -050017index 31ddc43..41c9a93 100644
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050018--- a/Makefile.in
19+++ b/Makefile.in
Andrew Geissler475cb722020-07-10 16:00:51 -050020@@ -167,56 +167,6 @@ gen: conf proto.h man
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050021 gensend: gen
Andrew Geissler475cb722020-07-10 16:00:51 -050022 rsync -aic $(GENFILES) $${SAMBA_HOST-samba.org}:/home/ftp/pub/rsync/generated-files/
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050023
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050024-aclocal.m4: $(srcdir)/m4/*.m4
25- aclocal -I $(srcdir)/m4
26-
27-configure.sh config.h.in: configure.ac aclocal.m4
28- @if test -f configure.sh; then cp -p configure.sh configure.sh.old; else touch configure.sh.old; fi
29- @if test -f config.h.in; then cp -p config.h.in config.h.in.old; else touch config.h.in.old; fi
30- autoconf -o configure.sh
31- autoheader && touch config.h.in
32- @if diff configure.sh configure.sh.old >/dev/null 2>&1; then \
33- echo "configure.sh is unchanged."; \
34- rm configure.sh.old; \
35- else \
36- echo "configure.sh has CHANGED."; \
37- fi
38- @if diff config.h.in config.h.in.old >/dev/null 2>&1; then \
39- echo "config.h.in is unchanged."; \
40- rm config.h.in.old; \
41- else \
42- echo "config.h.in has CHANGED."; \
43- fi
44- @if test -f configure.sh.old -o -f config.h.in.old; then \
45- if test "$(MAKECMDGOALS)" = reconfigure; then \
46- echo 'Continuing with "make reconfigure".'; \
47- else \
48- echo 'You may need to run:'; \
49- echo ' make reconfigure'; \
50- exit 1; \
51- fi \
52- fi
53-
Andrew Geissler475cb722020-07-10 16:00:51 -050054-.PHONY: reconfigure
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050055-reconfigure: configure.sh
56- ./config.status --recheck
57- ./config.status
58-
59-Makefile: Makefile.in config.status configure.sh config.h.in
60- @if test -f Makefile; then cp -p Makefile Makefile.old; else touch Makefile.old; fi
61- @./config.status
62- @if diff Makefile Makefile.old >/dev/null 2>&1; then \
63- echo "Makefile is unchanged."; \
64- rm Makefile.old; \
65- else \
66- if test "$(MAKECMDGOALS)" = reconfigure; then \
67- echo 'Continuing with "make reconfigure".'; \
68- else \
69- echo "Makefile updated -- rerun your make command."; \
70- exit 1; \
71- fi \
72- fi
73-
Andrew Geissler475cb722020-07-10 16:00:51 -050074 stunnel-rsyncd.conf: $(srcdir)/stunnel-rsyncd.conf.in Makefile
75 sed 's;\@bindir\@;$(bindir);g' <$(srcdir)/stunnel-rsyncd.conf.in >stunnel-rsyncd.conf
76