aboutsummaryrefslogtreecommitdiff
path: root/yomichan-user/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'yomichan-user/makefile')
-rw-r--r--yomichan-user/makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/yomichan-user/makefile b/yomichan-user/makefile
new file mode 100644
index 0000000..b965974
--- /dev/null
+++ b/yomichan-user/makefile
@@ -0,0 +1,32 @@
+.PHONY: clean
+
+all: yomichan-user.js yomichan-user.css
+
+user.js: conf.d/sentence-export.js
+user.css: conf.d/sentence-export.css
+
+user.css: conf.d/custom.css
+
+include ../common.mk
+
+copy.svg.b64: copy.svg
+
+conf.d/sentence-export.css: copy.svg.b64
+conf.d/sentence-export.css: conf.d/sentence-export.css.m4
+
+user.js:
+ cat $^ > $@
+
+user.css:
+ cat $^ > $@
+
+header.txt: header.txt.m4
+
+yomichan-user.js: header.txt user.min.js
+ cat $^ > $@
+yomichan-user.css: header.txt user.min.css
+ cat $^ > $@
+
+clean:
+ $(RM) user.js user.css user.min.js user.min.css header.txt yomichan-user.css yomichan-user.js
+