Přemysl Eric Janouch
e6bf88673f
Given that the generated file needs a manual adjustment, its small size, and the dependencies involved, it will be checked in to the repository.
19 lines
593 B
Makefile
19 lines
593 B
Makefile
.POSIX:
|
|
.SUFFIXES:
|
|
|
|
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)
|