summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2025-08-01 21:42:36 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2025-08-18 11:03:58 +0900
commit75a968d88af62dda468b5fb0481279c638483eab (patch)
tree991fe5b72a3758632b704233b2ca7ecbb39f781c
parent3c1244ab836226c324519d3d77bf712ec9168de0 (diff)
Add the recipe to fix/update depend files
-rw-r--r--.github/workflows/check_dependencies.yml6
-rw-r--r--defs/gmake.mk3
2 files changed, 4 insertions, 5 deletions
diff --git a/.github/workflows/check_dependencies.yml b/.github/workflows/check_dependencies.yml
index 6d85cf8e9c..db93e90efb 100644
--- a/.github/workflows/check_dependencies.yml
+++ b/.github/workflows/check_dependencies.yml
@@ -48,11 +48,7 @@ jobs:
- name: Run configure
run: ./configure -C --disable-install-doc --disable-rubygems --with-gcc 'optflags=-O0' 'debugflags=-save-temps=obj -g'
- - run: make all golf
-
- - run: ./goruby -veh
-
- - run: ruby tool/update-deps --fix
+ - run: make fix-depends
- run: git diff --no-ext-diff --ignore-submodules --exit-code
diff --git a/defs/gmake.mk b/defs/gmake.mk
index 6382e3d003..bd4b8b8e39 100644
--- a/defs/gmake.mk
+++ b/defs/gmake.mk
@@ -505,6 +505,9 @@ update-deps:
$(GIT) --git-dir=$(GIT_DIR) merge --no-edit --ff-only $(update_deps)
$(GIT) --git-dir=$(GIT_DIR) branch --delete $(update_deps)
+fix-depends check-depends: all hello
+ $(BASERUBY) -C $(srcdir) tool/update-deps $(if $(filter fix-%,$@),--fix)
+
# order-only-prerequisites doesn't work for $(RUBYSPEC_CAPIEXT)
# because the same named directory exists in the source tree.
$(RUBYSPEC_CAPIEXT)/%.$(DLEXT): $(srcdir)/$(RUBYSPEC_CAPIEXT)/%.c $(RUBYSPEC_CAPIEXT_DEPS) \