aboutsummaryrefslogtreecommitdiff
path: root/xA/Makefile
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2024-09-14 07:32:44 +0200
committerPřemysl Eric Janouch <p@janouch.name>2024-11-09 17:20:17 +0100
commitbb26887492a6ac5844b85f60b03fbefc34f529a4 (patch)
treedf98041ea4c00e8fb4d692891c410777614362da /xA/Makefile
parentdfe7675cbb8d02e14fe0a6c3a2ac93d48eb0c727 (diff)
downloadxK-bb26887492a6ac5844b85f60b03fbefc34f529a4.tar.gz
xK-bb26887492a6ac5844b85f60b03fbefc34f529a4.tar.xz
xK-bb26887492a6ac5844b85f60b03fbefc34f529a4.zip
WIP: xA
Diffstat (limited to 'xA/Makefile')
-rw-r--r--xA/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/xA/Makefile b/xA/Makefile
new file mode 100644
index 0000000..070f5ad
--- /dev/null
+++ b/xA/Makefile
@@ -0,0 +1,26 @@
+.POSIX:
+.SUFFIXES:
+AWK = env LC_ALL=C awk
+
+tools = ../liberty/tools
+outputs = FyneApp.toml xA proto.go
+all: $(outputs)
+
+FyneApp.toml: ../xK-version
+ printf "\
+ [Details]\n\
+ Name = 'xA'\n\
+ ID = 'name.janouch.xA'\n\
+ Version = '$$(cat ../xK-version)'\n\
+ Build = 1\n\
+ \n\
+ [LinuxAndBSD]\n\
+ GenericName = 'IRC Client'\n\
+ Categories = ['Network', 'Chat', 'IRCClient']\n" > $@
+xA: xA.go proto.go ../xK-version
+ go build -ldflags "-X 'main.projectVersion=$$(cat ../xK-version)'" -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 > $@
+clean:
+ rm -f $(outputs)