summaryrefslogtreecommitdiff
path: root/xP/Makefile
blob: c0198aaeb4969bb68aa1d2cf0340d9e30245f6a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.POSIX:
.SUFFIXES:
AWK = env LC_ALL=C awk

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 ../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 > $@
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)