forked from noisetorch/NoiseTorch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (25 loc) · 943 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
UPDATE_URL=
UPDATE_PUBKEY=Md2rdsS+b6W0trgcqa5lAWP978Zj0sFmubJ252OPKwc=
VERSION := $(shell git describe --tags)
dev: rnnoise
mkdir -p bin/
go generate
go build -ldflags '-X main.version=${VERSION}' -o bin/noisetorch
release: rnnoise
mkdir -p bin/
mkdir -p tmp/
mkdir -p tmp/.local/share/icons/hicolor/256x256/apps/
cp assets/icon/noisetorch.png tmp/.local/share/icons/hicolor/256x256/apps/
mkdir -p tmp/.local/share/applications/
cp assets/noisetorch.desktop tmp/.local/share/applications/
mkdir -p tmp/.local/bin/
go generate
CGO_ENABLED=0 GOOS=linux go build -trimpath -tags release -a -ldflags '-s -w -extldflags "-static" -X main.version=${VERSION} -X main.distribution=official' .
mv noisetorch tmp/.local/bin/
cd tmp/; \
tar cvzf ../bin/NoiseTorch_x64_${VERSION}.tgz .
rm -rf tmp/
go run scripts/signer.go -s -f bin/NoiseTorch_x64_${VERSION}.tgz
rnnoise:
git submodule update --init --recursive
$(MAKE) -C c/ladspa