aboutsummaryrefslogtreecommitdiff
path: root/xA/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'xA/Makefile')
-rw-r--r--xA/Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/xA/Makefile b/xA/Makefile
index b597652..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
+generated = FyneApp.toml xA.png xA-highlighted.png beep.raw proto.go
+outputs = xA $(generated)
all: $(outputs)
+generate: $(generated)
FyneApp.toml: ../xK-version
printf "\
@@ -21,11 +23,14 @@ FyneApp.toml: ../xK-version
Categories = ['Network', 'Chat', 'IRCClient']\n" > $@
.svg.png:
rsvg-convert --output=$@ -- $<
-xA: xA.go proto.go ../xK-version xA.png xA-highlighted.png
- go build -ldflags "-X 'main.projectVersion=$$(cat ../xK-version)'" -o $@ \
- -gcflags=all="-N -l"
+beep.raw:
+ sox -Dr 44100 -c 1 -e signed-integer -b 16 -L -n $@ \
+ synth 0.1 0 25 triangle 800 vol 0.5 fade t 0 -0 0.005 pad 0 0.05
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 ../xK-version $(generated)
+ go build -ldflags "-X 'main.projectVersion=$$(cat ../xK-version)'" -o $@ \
+ -gcflags=all="-N -l"
clean:
rm -f $(outputs)