Skip to content

Commit fbd9169

Browse files
committed
Fix shell-dependent glob syntax in src/main/c/Makefile
* Notably it does not work on GitHub Actions: https://github.com/oracle/truffleruby/actions/runs/8477776398/job/23229124563 cp: cannot stat '/home/runner/work/truffleruby/truffleruby/build/lib/gems/gems/debug-1.7.1/ext/debug/*.{rb,c}': No such file or directory * $^ means all prerequisites: https://www.gnu.org/software/make/manual/html_node/Automatic-Variables.html
1 parent 72f94f4 commit fbd9169

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/c/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ psych/psych.$(DLEXT): psych/Makefile psych/*.c psych/*.h
173173
# debug bundled gem
174174
debug/extconf.rb: $(DEBUG_GEM_EXT)/extconf.rb $(DEBUG_GEM_EXT)/*.c
175175
$(Q) mkdir -p debug
176-
$(Q) cd debug && cp $(DEBUG_GEM_EXT)/*.{rb,c} .
176+
$(Q) cd debug && cp $^ .
177177

178178
debug/Makefile: debug/extconf.rb $(EXTCONF_DEPS)
179179
$(Q) cd debug && $(RUBY) extconf.rb || $(IF_EXTCONF_FAIL)
@@ -184,7 +184,7 @@ debug/debug.$(DLEXT): debug/Makefile
184184
# rbs bundled gem
185185
rbs/extconf.rb: $(RBS_GEM_EXT)/extconf.rb $(RBS_GEM_EXT)/*.c $(RBS_GEM_EXT)/*.h
186186
$(Q) mkdir -p rbs
187-
$(Q) cd rbs && cp $(RBS_GEM_EXT)/*.{rb,c,h} .
187+
$(Q) cd rbs && cp $^ .
188188

189189
rbs/Makefile: rbs/extconf.rb $(EXTCONF_DEPS)
190190
$(Q) cd rbs && $(RUBY) extconf.rb || $(IF_EXTCONF_FAIL)

0 commit comments

Comments
 (0)