From b61997806e4fd86901447a6cc0a8088f5d6e18c4 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 21 Mar 2021 11:10:14 +0000 Subject: [PATCH] Makefile: introduce MAKEFILE_FIND_X Signed-off-by: Ian Jackson --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 592f282a..96db79d5 100644 --- a/Makefile +++ b/Makefile @@ -20,11 +20,13 @@ shapelib: templates/shapelib.html stamp/cargo.doc-otter-only @echo ' file://$(abspath $(TARGET_DIR)/doc/otter/shapelib_toml/index.html)' MAKEFILE_DEP ?= Makefile +MAKEFILE_FIND_X ?= +# ^ set this to "x" to debug the $rsrcs rune #---------- funky macros etc. ---------- cr = $(addprefix --,$(filter-out debug,$1)) -rsrcs = $(shell set -x;\ +rsrcs = $(shell $(foreach x,$(MAKEFILE_FIND_X),set -$x;)\ find -H $1 \( -name Cargo.toml -o -name Cargo.lock -o -name Cargo.lock.example -o -name \*.rs \) \! -path '*/build/*' ) stamp=@mkdir -p stamp; touch $@ -- 2.30.2