aboutsummaryrefslogtreecommitdiff
path: root/xP/Makefile
blob: 3c5214615a3d231a9782f88dbb544d5617b022f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
.POSIX:
.SUFFIXES:

outputs = xP proto.go public/mithril.js
all: $(outputs)

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/mithril.js:
	curl -Lo $@ https://unpkg.com/mithril/mithril.js
clean:
	rm -f $(outputs)