summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-03-23 00:58:03 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-03-23 00:58:46 +0900
commit26aff37466fa3226122c65f49f2b7663e6b2551b (patch)
treea6cbd8a906d518a71dd471d6d19a4770f17776ec /template
parent2b01d7f2ce949fe098d513588af8973597ad41c4 (diff)
Need to reconfigure and rebuild everything when abi.h changed
Diffstat (limited to 'template')
-rw-r--r--template/Makefile.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/template/Makefile.in b/template/Makefile.in
index 892add75cb..54b32d05b3 100644
--- a/template/Makefile.in
+++ b/template/Makefile.in
@@ -266,6 +266,8 @@ DESTDIR = @DESTDIR@
configure_args = @configure_args@
#### End of variables
+ABI_VERSION_HDR = $(hdrdir)/ruby/internal/abi.h
+
.SUFFIXES: .inc .h .c .y .i .$(ASMEXT) .$(DTRACE_EXT)
all:
@@ -354,7 +356,7 @@ install-cross: $(arch)-fake.rb $(RBCONFIG) rbconfig.rb $(arch_hdrdir)/ruby/confi
Makefile: $(srcdir)/template/Makefile.in $(srcdir)/enc/Makefile.in
-$(MKFILES): config.status $(srcdir)/version.h
+$(MKFILES): config.status $(srcdir)/version.h $(ABI_VERSION_HDR)
@[ -f $@ ] && mv $@ $@.old
MAKE=$(MAKE) $(SHELL) ./config.status $@
@cmp $@ $@.old > /dev/null 2>&1 && echo $@ unchanged && exit 0; \
@@ -376,7 +378,7 @@ reconfig-exec-0 = test -t 1 && { : $${CONFIGURE_TTY=yes}; export CONFIGURE_TTY;
reconfig-exec-1 = set -x; "$$@"
reconfig config.status: $(srcdir)/$(CONFIGURE) $(srcdir)/enc/Makefile.in \
- $(srcdir)/include/ruby/version.h
+ $(hdrdir)/ruby/version.h $(ABI_VERSION_HDR)
@PWD= MINIRUBY="$(MINIRUBY)"; export MINIRUBY; \
set $(SHELL) $($@-args); $(reconfig-exec-$(V))