chiark / gitweb /
Sort out build a bit
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 13 Sep 2020 22:59:15 +0000 (23:59 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 13 Sep 2020 22:59:15 +0000 (23:59 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
.gitignore
Makefile

index 81a69249808705bc00e651b6613496169b92025c..fbdf62d39f5d4a62e1e9432733343a3ef00a7b30 100644 (file)
@@ -1,2 +1,3 @@
 templates/script.js
 save/lock
+/library/*/*.usvg
index 6919812d971fd6c9c10a79a415c09d67ddf691ca..f7b050fcc44c18ac7299553f228b1a03d14ed365 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@
 
 SHELL=/bin/bash
 
-default: debug libraries
+default: debug
 
 CARGO ?= cargo
 CARGO_TARGET_DIR ?= target
@@ -38,9 +38,11 @@ include $(wildcard library/*/files.make)
 
 LIBRARY_PROCESS_SVG = ./usvg-processor $@ $^ '$(USVG)'
 
+assets: templates/script.js libraries
+
 libraries: $(LIBRARY_FILES)
 
-debug release:: %: $(CARGO_TARGET_DIR)/%/server templates/script.js extra-%
+debug release:: %: $(CARGO_TARGET_DIR)/%/server assets extra-%
        @echo Built $@.
 .PHONY: $(CARGO_TARGET_DIR)/debug/server
 .PHONY: $(CARGO_TARGET_DIR)/release/server