chiark / gitweb /
Makefile: Exclude */build/* from rsrcs
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 13 Jan 2021 21:06:31 +0000 (21:06 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 13 Jan 2021 21:06:31 +0000 (21:06 +0000)
When not using nailing-cargo we may run bits of make concurrently with
builds and we don't want to pick up any cargo-downloaded stuff.

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

index ee57335be77c6918be7148836a441f41291a5145..079a86e1a80c86069e1aaec66b120a88988caaf4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -23,7 +23,7 @@ shapelib: templates/shapelib.html stamp/cargo.doc-otter-only
 
 cr = $(addprefix --,$(filter-out debug,$1))
 rsrcs = $(shell \
-    find $1 \( -name Cargo.toml -o -name Cargo.lock -o -name Cargo.lock.example -o -name \*.rs \) )
+    find $1 \( -name Cargo.toml -o -name Cargo.lock -o -name Cargo.lock.example -o -name \*.rs \) ) \! -path '*/build/*'
 stamp=@mkdir -p stamp; touch $@
 
 BUNDLED_SOURCES_LIT = README.md LICENCE