chiark / gitweb /
Makefile: Do not try to bundle nonexistent other packages
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 12 Dec 2020 00:08:54 +0000 (00:08 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 12 Dec 2020 00:08:54 +0000 (00:08 +0000)
If the other package directories don't exist, do not try to use
bundle-sources on them.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Makefile

index 1f38cb91d9b4762c6e3940008a7c5f8aadf4a1f6..d115282d0fad14c8b7077f7c1285e0c6d03c73b4 100644 (file)
--- 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))