summaryrefslogtreecommitdiff
path: root/xP/Makefile
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-09-26 12:39:26 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-09-26 13:24:24 +0200
commit5863040f9323e210df0908333c6e85d63af000c0 (patch)
tree8c8838c68b7566b42d9dd84abe7212e93b1740ea /xP/Makefile
parentf891e5ca638ead13485cc490320e74d698641623 (diff)
downloadxK-5863040f9323e210df0908333c6e85d63af000c0.tar.gz
xK-5863040f9323e210df0908333c6e85d63af000c0.tar.xz
xK-5863040f9323e210df0908333c6e85d63af000c0.zip
Update documentation, clean up
Diffstat (limited to 'xP/Makefile')
-rw-r--r--xP/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/xP/Makefile b/xP/Makefile
index 34de55a..c0198aa 100644
--- a/xP/Makefile
+++ b/xP/Makefile
@@ -1,5 +1,6 @@
.POSIX:
.SUFFIXES:
+AWK = env LC_ALL=C awk
outputs = xP proto.go public/proto.js public/mithril.js
all: $(outputs) public/ircfmt.woff2
@@ -7,11 +8,11 @@ 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 > $@
+ $(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 > $@
+ $(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
+ $(AWK) -v Output=$@ -f gen-ircfmt.awk
public/mithril.js:
curl -Lo $@ https://unpkg.com/mithril/mithril.js
clean: