From b015f34aff1728d4f89c9b7521886896c4be8b8b Mon Sep 17 00:00:00 2001 From: Peng Tao Date: Tue, 25 Oct 2022 15:30:13 +0800 Subject: [PATCH] runtime-rs: generate config files with the default target Right now it is not generated with a simple `make`. Fixes: #5509 Signed-off-by: Peng Tao --- src/runtime-rs/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/runtime-rs/Makefile b/src/runtime-rs/Makefile index 7c1bd663b1..a78d41770f 100644 --- a/src/runtime-rs/Makefile +++ b/src/runtime-rs/Makefile @@ -357,15 +357,15 @@ endef .DEFAULT_GOAL := default +GENERATED_FILES += $(CONFIGS) + runtime: $(TARGET) -$(TARGET): $(GENERATED_CODE) $(TARGET_PATH) +$(TARGET): $(GENERATED_FILES) $(TARGET_PATH) $(TARGET_PATH): $(SOURCES) | show-summary @RUSTFLAGS="$(EXTRA_RUSTFLAGS) --deny warnings" cargo build --target $(TRIPLE) --$(BUILD_TYPE) $(EXTRA_RUSTFEATURES) -GENERATED_FILES += $(CONFIGS) - $(GENERATED_FILES): %: %.in @sed \ $(foreach r,$(GENERATED_REPLACEMENTS),-e 's|@$r@|$($r)|g') \