mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00

- Split static recipes to depend file. - Modify makefile configurations in the block to `create_makefile`. - Expand rust sources in extconf.rb instead of GNU make extension. TODO: pass `CARGO_TARGET_DIR` without shell syntax.
18 lines
513 B
Text
18 lines
513 B
Text
$(TARGET_SO): $(MMTK_BUILD)/$(LIBMMTK_RUBY)
|
|
|
|
# Add the `libmmtk_ruby.a` target to run `cargo build`
|
|
|
|
release/$(LIBMMTK_RUBY) debug/$(LIBMMTK_RUBY): $(RUSTSRCS) $(srcdir)/Cargo.toml $(srcdir)/Cargo.toml
|
|
|
|
release/$(LIBMMTK_RUBY):
|
|
CARGO_TARGET_DIR="." cargo build --manifest-path=$(srcdir)/Cargo.toml --release
|
|
|
|
debug/$(LIBMMTK_RUBY):
|
|
CARGO_TARGET_DIR="." cargo build --manifest-path=$(srcdir)/Cargo.toml
|
|
|
|
clean: clean-mmtk
|
|
|
|
.PHONY: clean-mmtk
|
|
clean-mmtk:
|
|
-$(Q)$(RM_RF) debug release
|
|
-$(Q)$(RM) .rustc_info.json
|