Skip to content

Commit 91ab8f5

Browse files
committed
build: fix bitcoin-config.h regeneration after touching build files
This was a long-standing and annoying problem. If autogen.sh was not manually run after touching configure.ac, bitcoin-config.h would not be properly regenerated. This causes very subtle problems when configure appears to enable a new value, but it does not end up reflected in the build.
1 parent 3577603 commit 91ab8f5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Makefile.am

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,14 @@ DISTCLEANFILES = obj/build.h
462462

463463
EXTRA_DIST = $(CTAES_DIST)
464464

465+
466+
config/bitcoin-config.h: config/stamp-h1
467+
@$(MAKE) -C $(top_builddir) $(subdir)/$(@)
468+
config/stamp-h1: $(top_srcdir)/$(subdir)/config/bitcoin-config.h.in $(top_builddir)/config.status
469+
$(AM_V_at)$(MAKE) -C $(top_builddir) $(subdir)/$(@)
470+
$(top_srcdir)/$(subdir)/config/bitcoin-config.h.in: $(am__configure_deps)
471+
$(AM_V_at)$(MAKE) -C $(top_srcdir) $(subdir)/config/bitcoin-config.h.in
472+
465473
clean-local:
466474
-$(MAKE) -C secp256k1 clean
467475
-$(MAKE) -C univalue clean

0 commit comments

Comments
 (0)