diff options
Diffstat (limited to 'xP/Makefile')
-rw-r--r-- | xP/Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/xP/Makefile b/xP/Makefile new file mode 100644 index 0000000..34de55a --- /dev/null +++ b/xP/Makefile @@ -0,0 +1,18 @@ +.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) |