xA: add a "generate" target to the Makefile

So that Fyne tools can be run without building the default binary.
This commit is contained in:
Přemysl Eric Janouch 2024-11-12 17:09:17 +01:00
parent 214c349869
commit 086b879ab8
Signed by: p
GPG Key ID: A0420B94F92B9493

View File

@ -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: