summaryrefslogtreecommitdiff
path: root/xP/Makefile
blob: 6ecf298e6cbf8b095f0ff09165d442e28162c6e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.POSIX:
.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: $(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:
	curl -Lo $@ https://unpkg.com/mithril/mithril.js
clean:
	rm -f $(outputs)