summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-04-09 01:33:39 +0200
committerTor Andersson <tor@ccxvii.net>2023-05-03 18:48:16 +0200
commitc839704fed8ab20b813005824ef4c61c1eeed7b2 (patch)
treeeff9b422d4f5a0cdf2bc7df75d6c3ef10858af91 /Makefile
parentaa12482603548963da643d2bb800bd3abc560822 (diff)
downloadandean-abyss-c839704fed8ab20b813005824ef4c61c1eeed7b2.tar.gz
Add Makefile!
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..d85f06f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,7 @@
+default: data.js rules.js
+data.js: tools/gendata.js
+ node tools/gendata.js
+default rules.js: events.txt
+ sed '/const CODE /,$$d' < rules.js > /tmp/rules.js
+ node tools/gencode.js >> /tmp/rules.js
+ cp /tmp/rules.js rules.js