Patrick Williams | 44b3caf | 2024-04-12 16:51:14 -0500 | [diff] [blame] | 1 | From f446686c26c499e15ef17d495a93cfbc20e16090 Mon Sep 17 00:00:00 2001 |
Andrew Geissler | 475cb72 | 2020-07-10 16:00:51 -0500 | [diff] [blame] | 2 | From: Ross Burton <ross.burton@intel.com> |
| 3 | Date: Tue, 12 Apr 2016 15:51:54 +0100 |
| 4 | Subject: [PATCH] rsync: remove upstream's rebuild logic |
| 5 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 6 | Remove the Makefile rules to reinvoke autoconf, they're not out-of-tree safe and |
| 7 | generally overcomplicated, and we ensure that autoreconf is invoked if required. |
| 8 | |
| 9 | Upstream-Status: Inappropriate |
| 10 | Signed-off-by: Ross Burton <ross.burton@intel.com> |
Andrew Geissler | 475cb72 | 2020-07-10 16:00:51 -0500 | [diff] [blame] | 11 | --- |
Andrew Geissler | 635e0e4 | 2020-08-21 15:58:33 -0500 | [diff] [blame] | 12 | Makefile.in | 54 ----------------------------------------------------- |
| 13 | 1 file changed, 54 deletions(-) |
Andrew Geissler | 475cb72 | 2020-07-10 16:00:51 -0500 | [diff] [blame] | 14 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 15 | diff --git a/Makefile.in b/Makefile.in |
Patrick Williams | 44b3caf | 2024-04-12 16:51:14 -0500 | [diff] [blame] | 16 | index a1253e5..a084935 100644 |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 17 | --- a/Makefile.in |
| 18 | +++ b/Makefile.in |
Patrick Williams | 44b3caf | 2024-04-12 16:51:14 -0500 | [diff] [blame] | 19 | @@ -192,60 +192,6 @@ gensend: gen |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 20 | fi |
| 21 | rsync -aic $(GENFILES) git-version.h $${SAMBA_HOST-samba.org}:/home/ftp/pub/rsync/generated-files/ || true |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 22 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 23 | -aclocal.m4: $(srcdir)/m4/*.m4 |
| 24 | - aclocal -I $(srcdir)/m4 |
| 25 | - |
| 26 | -configure.sh config.h.in: configure.ac aclocal.m4 |
| 27 | - @if test -f configure.sh; then cp -p configure.sh configure.sh.old; else touch configure.sh.old; fi |
| 28 | - @if test -f config.h.in; then cp -p config.h.in config.h.in.old; else touch config.h.in.old; fi |
| 29 | - autoconf -o configure.sh |
| 30 | - autoheader && touch config.h.in |
| 31 | - @if diff configure.sh configure.sh.old >/dev/null 2>&1; then \ |
| 32 | - echo "configure.sh is unchanged."; \ |
| 33 | - rm configure.sh.old; \ |
| 34 | - else \ |
| 35 | - echo "configure.sh has CHANGED."; \ |
| 36 | - fi |
| 37 | - @if diff config.h.in config.h.in.old >/dev/null 2>&1; then \ |
| 38 | - echo "config.h.in is unchanged."; \ |
| 39 | - rm config.h.in.old; \ |
| 40 | - else \ |
| 41 | - echo "config.h.in has CHANGED."; \ |
| 42 | - fi |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 43 | - @if test -f configure.sh.old || test -f config.h.in.old; then \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 44 | - if test "$(MAKECMDGOALS)" = reconfigure; then \ |
| 45 | - echo 'Continuing with "make reconfigure".'; \ |
| 46 | - else \ |
| 47 | - echo 'You may need to run:'; \ |
| 48 | - echo ' make reconfigure'; \ |
| 49 | - exit 1; \ |
| 50 | - fi \ |
| 51 | - fi |
| 52 | - |
Andrew Geissler | 475cb72 | 2020-07-10 16:00:51 -0500 | [diff] [blame] | 53 | -.PHONY: reconfigure |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 54 | -reconfigure: configure.sh |
| 55 | - ./config.status --recheck |
| 56 | - ./config.status |
| 57 | - |
Andrew Geissler | 635e0e4 | 2020-08-21 15:58:33 -0500 | [diff] [blame] | 58 | -.PHONY: restatus |
| 59 | -restatus: |
| 60 | - ./config.status |
| 61 | - |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 62 | -Makefile: Makefile.in config.status configure.sh config.h.in |
| 63 | - @if test -f Makefile; then cp -p Makefile Makefile.old; else touch Makefile.old; fi |
| 64 | - @./config.status |
| 65 | - @if diff Makefile Makefile.old >/dev/null 2>&1; then \ |
| 66 | - echo "Makefile is unchanged."; \ |
| 67 | - rm Makefile.old; \ |
| 68 | - else \ |
| 69 | - if test "$(MAKECMDGOALS)" = reconfigure; then \ |
| 70 | - echo 'Continuing with "make reconfigure".'; \ |
| 71 | - else \ |
| 72 | - echo "Makefile updated -- rerun your make command."; \ |
| 73 | - exit 1; \ |
| 74 | - fi \ |
| 75 | - fi |
| 76 | - |
Andrew Geissler | 475cb72 | 2020-07-10 16:00:51 -0500 | [diff] [blame] | 77 | stunnel-rsyncd.conf: $(srcdir)/stunnel-rsyncd.conf.in Makefile |
| 78 | sed 's;\@bindir\@;$(bindir);g' <$(srcdir)/stunnel-rsyncd.conf.in >stunnel-rsyncd.conf |
| 79 | |