aboutsummaryrefslogtreecommitdiff
path: root/xP/Makefile
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-09-30 03:23:06 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-09-30 03:24:24 +0200
commit46d68eacce700e675ce534fe948024f939a968c8 (patch)
tree94314d086edb89aa001c6fca8c070aa6402aca38 /xP/Makefile
parent86278c154c0e8f88f3df91298b4fcd40f8c7571b (diff)
downloadxK-46d68eacce700e675ce534fe948024f939a968c8.tar.gz
xK-46d68eacce700e675ce534fe948024f939a968c8.tar.xz
xK-46d68eacce700e675ce534fe948024f939a968c8.zip
Move protocol code generators to liberty
This part of the project is now more or less stable.
Diffstat (limited to 'xP/Makefile')
-rw-r--r--xP/Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/xP/Makefile b/xP/Makefile
index 6f3cdab..6ecf298 100644
--- a/xP/Makefile
+++ b/xP/Makefile
@@ -2,16 +2,17 @@
.SUFFIXES:
AWK = env LC_ALL=C awk
+tools = ../liberty/tools
outputs = xP proto.go public/proto.js public/mithril.js
all: $(outputs) public/ircfmt.woff2
xP: xP.go proto.go
go build -o $@
-proto.go: ../xC-gen-proto.awk ../xC-gen-proto-go.awk ../xC-proto
- $(AWK) -f ../xC-gen-proto.awk -f ../xC-gen-proto-go.awk \
- -v PrefixCamel=Relay ../xC-proto > $@
-public/proto.js: ../xC-gen-proto.awk ../xC-gen-proto-js.awk ../xC-proto
- $(AWK) -f ../xC-gen-proto.awk -f ../xC-gen-proto-js.awk ../xC-proto > $@
+proto.go: $(tools)/lxdrgen.awk $(tools)/lxdrgen-go.awk ../xC.lxdr
+ $(AWK) -f $(tools)/lxdrgen.awk -f $(tools)/lxdrgen-go.awk \
+ -v PrefixCamel=Relay ../xC.lxdr > $@
+public/proto.js: $(tools)/lxdrgen.awk $(tools)/lxdrgen-mjs.awk ../xC.lxdr
+ $(AWK) -f $(tools)/lxdrgen.awk -f $(tools)/lxdrgen-mjs.awk ../xC.lxdr > $@
public/ircfmt.woff2: gen-ircfmt.awk
$(AWK) -v Output=$@ -f gen-ircfmt.awk
public/mithril.js: