diff options
Diffstat (limited to 'yomichan-user/makefile')
-rw-r--r-- | yomichan-user/makefile | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/yomichan-user/makefile b/yomichan-user/makefile index 21b41d5..e0e543d 100644 --- a/yomichan-user/makefile +++ b/yomichan-user/makefile @@ -1,4 +1,6 @@ -.PHONY: clean +.PHONY: clean all + +M4FLAGS += -I./assets/ all: yomichan-user.js yomichan-user.css @@ -12,13 +14,15 @@ user.js: conf.d/shortcuts.js include ../common.mk -copy.svg.b64: copy.svg -copy-bitmap.svg.b64: copy-bitmap.svg +assets/copy.svg.b64: assets/copy.svg +assets/copy-bitmap.svg.b64: assets/copy-bitmap.svg +GARBAGE += assets/copy.svg.b64 +GARBAGE += assets/copy-bitmap.svg.b64 -conf.d/sentence-export.css: copy.svg.b64 +# extra dependencies +conf.d/sentence-export.css: assets/copy.svg.b64 conf.d/sentence-export.css: conf.d/sentence-export.css.m4 - -conf.d/word-export.css: copy-bitmap.svg.b64 +conf.d/word-export.css: assets/copy-bitmap.svg.b64 user.js: cat $^ > $@ @@ -36,4 +40,5 @@ yomichan-user.css: header.txt user.min.css clean: $(RM) user.js user.css user.min.js user.min.css header.txt yomichan-user.css yomichan-user.js + $(RM) $(GARBAGE) |