diff options
Diffstat (limited to 'xA/Makefile')
-rw-r--r-- | xA/Makefile | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/xA/Makefile b/xA/Makefile new file mode 100644 index 0000000..d0f0449 --- /dev/null +++ b/xA/Makefile @@ -0,0 +1,36 @@ +.POSIX: +.SUFFIXES: +.SUFFIXES: .png .svg +AWK = env LC_ALL=C awk + +tools = ../liberty/tools +generated = FyneApp.toml xA.png xA-highlighted.png beep.raw proto.go +outputs = xA $(generated) +all: $(outputs) +generate: $(generated) + +FyneApp.toml: ../xK-version + printf "\ + [Details]\n\ + Icon = 'xA.png'\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" > $@ +.svg.png: + rsvg-convert --output=$@ -- $< +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) |