aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-12-26 14:11:57 +0100
committerlonkaars <loek@pipeframe.xyz>2022-12-26 14:11:57 +0100
commit7ee2d6aa68bfb474f547cf88781fc43b9751d0cc (patch)
tree0e4e73eae1a7a18b3db5e5efe2c6c453c18fc27f /makefile
parentd90e2b8f121534e8004a642f576807dd3ed53507 (diff)
back and front card template
Diffstat (limited to 'makefile')
-rw-r--r--makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..61b512f
--- /dev/null
+++ b/makefile
@@ -0,0 +1,15 @@
+all: back-template.html front-template.html
+
+.PRECIOUS: card.min.js
+
+card.min.js: card/card.js
+ sed 's/\/\/.*$$//g' $< | tr '\n' ' ' | sed 's/\t//g' | sed 's/ */ /g' > $@
+
+%.html: %.m4
+ m4 $< > $@
+
+back-template.html: card.min.js card/card.css
+front-template.html: card.min.js card/card.css
+
+clean:
+ $(RM) back-template.html front-template.html card.min.js