mirror of
https://github.com/openharmony/third_party_rust_rust-std-candidates.git
synced 2026-07-01 20:44:02 -04:00
31 lines
516 B
Makefile
31 lines
516 B
Makefile
RUST_CHANNEL ?= nightly
|
|
|
|
CRATES = matches show text_writer triable return_if_ok ref_filter_map
|
|
|
|
ifeq "$(RUST_CHANNEL)" "nightly"
|
|
CRATES += zip_longest
|
|
endif
|
|
|
|
# Unmaintained: mod_path
|
|
|
|
.PHONY: default
|
|
default: test
|
|
|
|
define ALL
|
|
|
|
.PHONY: $(1)
|
|
$(1): $(addprefix $(1)-,$(CRATES))
|
|
$(foreach crate,$(CRATES),$(eval $(call ONE,$(1),$(crate))))
|
|
|
|
endef
|
|
|
|
define ONE
|
|
|
|
.PHONY: $(1)-$(2)
|
|
$(1)-$(2):
|
|
cargo $(1) --manifest-path $(2)/Cargo.toml
|
|
|
|
endef
|
|
|
|
$(foreach command,test build clean publish,$(eval $(call ALL,$(command))))
|