Fossil SCM

Merge the automatic reconfigure changes.

drh 2017-10-11 10:13 trunk merge
Commit 67a9088237bfe01a5e00a1fd6fe4195d822eae13fdde378f4f55ac5c1cddccdf
+21
--- Makefile.in
+++ Makefile.in
@@ -49,5 +49,26 @@
4949
5050
include $(SRCDIR)/main.mk
5151
5252
distclean: clean
5353
rm -f autoconfig.h config.log Makefile
54
+
55
+reconfig:
56
+ @AUTOREMAKE@
57
+
58
+# Reconfigure whenever an audiosetup file or one of the make source
59
+# files change, unless this is "make clean".
60
+#
61
+# The "touch" is necessary to avoid a make loop due to a new upstream
62
+# feature in autosetup where *.in outputs are touched only if they
63
+# actually change. If something other than Makefile.in changes, we'll
64
+# reconfigure but Makefile won't change, so this rule will remain out of
65
+# date, so we'll reconfigure but Makefile won't change, so we'll...
66
+#
67
+# This also why we repeat the reconfig target's command here instead
68
+# of delegating to it with "$(MAKE) reconfig": having children running
69
+# around interfering makes this worse.
70
+ifeq ($(findstring clean,$(MAKECMDGOALS)),)
71
+Makefile: @srcdir@/Makefile.in $(SRCDIR)/main.mk @AUTODEPS@
72
+ @AUTOREMAKE@
73
+ touch @builddir@/Makefile
74
+endif
5475
--- Makefile.in
+++ Makefile.in
@@ -49,5 +49,26 @@
49
50 include $(SRCDIR)/main.mk
51
52 distclean: clean
53 rm -f autoconfig.h config.log Makefile
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
--- Makefile.in
+++ Makefile.in
@@ -49,5 +49,26 @@
49
50 include $(SRCDIR)/main.mk
51
52 distclean: clean
53 rm -f autoconfig.h config.log Makefile
54
55 reconfig:
56 @AUTOREMAKE@
57
58 # Reconfigure whenever an audiosetup file or one of the make source
59 # files change, unless this is "make clean".
60 #
61 # The "touch" is necessary to avoid a make loop due to a new upstream
62 # feature in autosetup where *.in outputs are touched only if they
63 # actually change. If something other than Makefile.in changes, we'll
64 # reconfigure but Makefile won't change, so this rule will remain out of
65 # date, so we'll reconfigure but Makefile won't change, so we'll...
66 #
67 # This also why we repeat the reconfig target's command here instead
68 # of delegating to it with "$(MAKE) reconfig": having children running
69 # around interfering makes this worse.
70 ifeq ($(findstring clean,$(MAKECMDGOALS)),)
71 Makefile: @srcdir@/Makefile.in $(SRCDIR)/main.mk @AUTODEPS@
72 @AUTOREMAKE@
73 touch @builddir@/Makefile
74 endif
75
--- autosetup/system.tcl
+++ autosetup/system.tcl
@@ -205,13 +205,13 @@
205205
}
206206
continue
207207
}
208208
lappend result $line
209209
}
210
- writefile $out [string map $mapping [join $result \n]]\n
211
-
212
- msg-result "Created [relative-path $out] from [relative-path $template]"
210
+ write-if-changed $out [string map $mapping [join $result \n]]\n {
211
+ msg-result "Created [relative-path $out] from [relative-path $template]"
212
+ }
213213
}
214214
215215
# build/host tuples and cross-compilation prefix
216216
set build [opt-val build]
217217
define build_alias $build
218218
--- autosetup/system.tcl
+++ autosetup/system.tcl
@@ -205,13 +205,13 @@
205 }
206 continue
207 }
208 lappend result $line
209 }
210 writefile $out [string map $mapping [join $result \n]]\n
211
212 msg-result "Created [relative-path $out] from [relative-path $template]"
213 }
214
215 # build/host tuples and cross-compilation prefix
216 set build [opt-val build]
217 define build_alias $build
218
--- autosetup/system.tcl
+++ autosetup/system.tcl
@@ -205,13 +205,13 @@
205 }
206 continue
207 }
208 lappend result $line
209 }
210 write-if-changed $out [string map $mapping [join $result \n]]\n {
211 msg-result "Created [relative-path $out] from [relative-path $template]"
212 }
213 }
214
215 # build/host tuples and cross-compilation prefix
216 set build [opt-val build]
217 define build_alias $build
218

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button