.POSIX: .SUFFIXES: .SUFFIXES: .png .svg AWK = env LC_ALL=C awk tools = ../liberty/tools outputs = FyneApp.toml xA proto.go xA.png xA-highlighted.png all: $(outputs) 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=$@ -- $< xA: xA.go proto.go ../xK-version go build -ldflags "-X 'main.projectVersion=$$(cat ../xK-version)'" -o $@ \ -gcflags=all="-N -l" 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)