chiark / gitweb /
Makefile: Fix recent changes
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 13 Jan 2021 21:11:37 +0000 (21:11 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 13 Jan 2021 21:11:37 +0000 (21:11 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Makefile

index 079a86e1a80c86069e1aaec66b120a88988caaf4..45b65e79622a245bffc63bfc312ea186dee12183 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -22,8 +22,8 @@ shapelib: templates/shapelib.html stamp/cargo.doc-otter-only
 #---------- funky macros etc. ----------
 
 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 \) ) \! -path '*/build/*'
+rsrcs = $(shell 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 $@
 
 BUNDLED_SOURCES_LIT = README.md LICENCE
@@ -282,7 +282,7 @@ $(addprefix templates/,$(TXTFILES)): templates/%: %.txt
 libraries: $(LIBRARY_FILES)
 
 templates/shapelib.html: $(TARGET_DIR)/debug/otterlib $(LIBRARY_FILES)
-       $(NAILING_CARGO_JUST_RUN) --- $(abspath $<) \
+       $(NAILING_CARGO_JUST_RUN) $(abspath $<) \
        --libs '$(addprefix $(PWD)/, $(addsuffix .toml, $(LIBRARIES)))' \
                preview >$@.tmp && mv -f $@.tmp $@