Fossil SCM
Merge the automatic reconfigure changes.
Commit
67a9088237bfe01a5e00a1fd6fe4195d822eae13fdde378f4f55ac5c1cddccdf
Parent
7aad2af7d39acbf…
2 files changed
+21
+3
-3
+21
| --- Makefile.in | ||
| +++ Makefile.in | ||
| @@ -49,5 +49,26 @@ | ||
| 49 | 49 | |
| 50 | 50 | include $(SRCDIR)/main.mk |
| 51 | 51 | |
| 52 | 52 | distclean: clean |
| 53 | 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 | |
| 54 | 75 |
| --- 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 |
+3
-3
| --- autosetup/system.tcl | ||
| +++ autosetup/system.tcl | ||
| @@ -205,13 +205,13 @@ | ||
| 205 | 205 | } |
| 206 | 206 | continue |
| 207 | 207 | } |
| 208 | 208 | lappend result $line |
| 209 | 209 | } |
| 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 | + } | |
| 213 | 213 | } |
| 214 | 214 | |
| 215 | 215 | # build/host tuples and cross-compilation prefix |
| 216 | 216 | set build [opt-val build] |
| 217 | 217 | define build_alias $build |
| 218 | 218 |
| --- 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 |