From 9015c0332ea992def38cf44a0f4ef3d920df93df Mon Sep 17 00:00:00 2001 From: lawl Date: Sun, 5 Jul 2020 21:02:02 +0200 Subject: [PATCH] Build into a bin directory --- .gitignore | 2 +- Makefile | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 6e15b49..d791cdb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -noisetorch +bin/ librnnoise.go \ No newline at end of file diff --git a/Makefile b/Makefile index c32b9ae..dc1d3ee 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,14 @@ dev: rnnoise + mkdir bin/ go generate - go build + go build -o bin/noisetorch release: rnnoise go generate CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-s -w -extldflags "-static"' . upx noisetorch tar cvzf NoiseTorch_x64.tgz noisetorch rm noisetorch + mv NoiseTorch_x64.tgz bin/ rnnoise: cd librnnoise_ladspa/; \ cmake . -DBUILD_VST_PLUGIN=OFF -DBUILD_LV2_PLUGIN=OFF -DBUILD_LADSPA_PLUGIN=ON; \