summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoël Simoneau <simoneaujoel@gmail.com>2025-01-15 13:40:22 -0500
committerJoël Simoneau <simoneaujoel@gmail.com>2025-01-15 13:40:22 -0500
commit18416aa5490342334c53ab806d06669f5d17a5de (patch)
tree8f7532b2803ef5b0056a364e8aa17444d5c818fb /Makefile
parent33d213ce1547fa295854ade306e71b91c46460e9 (diff)
downloadvijayanagara-18416aa5490342334c53ab806d06669f5d17a5de.tar.gz
Basic event structure.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0af05bc..e3e35d0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,6 @@
default: rules.js
-rules.js:
- sed -i -ne '/\/\/ === CONST ===/ {p; r const.js' -e ':a; n; /\/\/ === CONST ===/ {p; b}; ba}; p' rules.js \ No newline at end of file
+rules.js: events.txt
+ sed -i -ne '/\/\/ === CONST ===/ {p; r const.js' -e ':a; n; /\/\/ === CONST ===/ {p; b}; ba}; p' rules.js
+ sed '/const CODE /,$$d' < rules.js > /tmp/rules.js
+ node tools/gencode.js >> /tmp/rules.js
+ cp /tmp/rules.js rules.js \ No newline at end of file