runtime-rs: Include target install in conditional branch

A Makefile target `install` should be included in the conditional branch
as default and test.

Signed-off-by: Hyounggyu Choi <Hyounggyu.Choi@ibm.com>
This commit is contained in:
Hyounggyu Choi 2023-02-13 20:56:00 +01:00
parent c071355359
commit 4139d68d51

View File

@ -28,6 +28,9 @@ default:
test: test:
@echo "s390x is not currently supported" @echo "s390x is not currently supported"
exit 0 exit 0
install:
@echo "s390x is not currently supported"
exit 0
else ifeq ($(ARCH), powerpc64le) else ifeq ($(ARCH), powerpc64le)
default: default:
@echo "PowerPC 64 LE is not currently supported" @echo "PowerPC 64 LE is not currently supported"
@ -35,12 +38,16 @@ default:
test: test:
@echo "PowerPC 64 LE is not currently supported" @echo "PowerPC 64 LE is not currently supported"
exit 0 exit 0
install:
@echo "PowerPC 64 LE is not currently supported"
exit 0
else else
##TARGET default: build code ##TARGET default: build code
default: runtime show-header default: runtime show-header
##TARGET test: run cargo tests ##TARGET test: run cargo tests
test: test:
@cargo test --all --target $(TRIPLE) $(EXTRA_RUSTFEATURES) -- --nocapture @cargo test --all --target $(TRIPLE) $(EXTRA_RUSTFEATURES) -- --nocapture
install: install-runtime install-configs
endif endif
ifeq (,$(realpath $(ARCH_FILE))) ifeq (,$(realpath $(ARCH_FILE)))
@ -491,8 +498,6 @@ codecov: check_tarpaulin
codecov-html: check_tarpaulin codecov-html: check_tarpaulin
cargo tarpaulin $(TARPAULIN_ARGS) -o Html cargo tarpaulin $(TARPAULIN_ARGS) -o Html
install: install-runtime install-configs
install-runtime: runtime install-runtime: runtime
install -D $(TARGET_PATH) $(DESTDIR)$(BINDIR)/$(notdir $(TARGET_PATH)) install -D $(TARGET_PATH) $(DESTDIR)$(BINDIR)/$(notdir $(TARGET_PATH))