22 lines
681 B
Makefile
22 lines
681 B
Makefile
.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)
|