aboutsummaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-12-28 13:51:16 +0100
committerlonkaars <loek@pipeframe.xyz>2022-12-28 13:51:16 +0100
commit8f75fa200e1042f09f0fe3c4805f5600e3567f54 (patch)
tree8a88264e7bd04ef493d6ce8a481c899b22408d90 /common.mk
parentec000fcbb7e721bfd2638427d54f56f2dae76316 (diff)
makefile shuffle + WIP yomichan sentence export patch
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/common.mk b/common.mk
new file mode 100644
index 0000000..5944b64
--- /dev/null
+++ b/common.mk
@@ -0,0 +1,8 @@
+%.min.js: %.js
+ sed 's/\/\/.*$$//g' $< | tr '\n' ' ' | sed 's/\t//g' | sed 's/ */ /g' > $@
+
+%.min.css: %.css
+ cat $< | tr '\n' ' ' | sed 's/\t//g' | sed 's/ */ /g' > $@
+
+%.html: %.m4
+ m4 $< > $@