summaryrefslogtreecommitdiff
path: root/xA
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2024-11-12 17:09:17 +0100
committerPřemysl Eric Janouch <p@janouch.name>2024-11-12 17:11:23 +0100
commit086b879ab8d488f4355427864214556812b3a712 (patch)
tree44beb105be4203358747c1baaa7593c4efea253d /xA
parent214c3498692cc7d81e233fcf6c27dccf448ab591 (diff)
downloadxK-086b879ab8d488f4355427864214556812b3a712.tar.gz
xK-086b879ab8d488f4355427864214556812b3a712.tar.xz
xK-086b879ab8d488f4355427864214556812b3a712.zip
xA: add a "generate" target to the Makefile
So that Fyne tools can be run without building the default binary.
Diffstat (limited to 'xA')
-rw-r--r--xA/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/xA/Makefile b/xA/Makefile
index da62944..d0f0449 100644
--- a/xA/Makefile
+++ b/xA/Makefile
@@ -4,8 +4,10 @@
AWK = env LC_ALL=C awk
tools = ../liberty/tools
-outputs = FyneApp.toml xA proto.go xA.png xA-highlighted.png beep.raw
+generated = FyneApp.toml xA.png xA-highlighted.png beep.raw proto.go
+outputs = xA $(generated)
all: $(outputs)
+generate: $(generated)
FyneApp.toml: ../xK-version
printf "\
@@ -27,7 +29,7 @@ beep.raw:
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 > $@
-xA: xA.go proto.go ../xK-version xA.png xA-highlighted.png beep.raw
+xA: xA.go ../xK-version $(generated)
go build -ldflags "-X 'main.projectVersion=$$(cat ../xK-version)'" -o $@ \
-gcflags=all="-N -l"
clean: