From d32a28ece1513381e6c7c878baf0fc40dff672b4 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 12 Dec 2020 00:08:54 +0000 Subject: [PATCH] Makefile: Do not try to bundle nonexistent other packages If the other package directories don't exist, do not try to use bundle-sources on them. Signed-off-by: Ian Jackson --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1f38cb91..d115282d 100644 --- a/Makefile +++ b/Makefile @@ -80,9 +80,9 @@ $(if $(wildcard $(BUILD_SUBDIR)/$2), $(shell echo >&2 'Makefile: lp: Using program $4 from $(BUILD_SUBDIR)/$2') $1 := $(abspath $(BUILD_SUBDIR)/$2/target/$3/$4) $(abspath $(BUILD_SUBDIR)/$2/target/$3/$4):; cd ../$2 && $$(CARGO) build $(call cr,$3) -) BUNDLED_SOURCES_DIRS += $2 BUNDLED_SOURCES_LINKS += $2/ +) endef $(eval $(call lp,BUNDLE_SOURCES,bundle-sources,debug,bundle-rust-sources)) -- 2.30.2