From 89d46d6e6d8fa4d833909fbc85eccf31d3e37967 Mon Sep 17 00:00:00 2001 From: peolic <66393006+peolic@users.noreply.github.com> Date: Fri, 23 Sep 2022 19:04:18 +0300 Subject: [PATCH] update Makefile --- Makefile | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/Makefile b/Makefile index fd440d9..9541bf4 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,8 @@ update: go get github.com/stashapp/stash@develop && \ go mod tidy +# videohashes + windows: GOOS=windows GOARCH=amd64 EXTRA_LDFLAGS='-extldflags=-static -s -w' \ go build -o dist/videohashes.exe ./cmd/videohashes @@ -15,3 +17,35 @@ macos: go build -o dist/videohashes-macos ./cmd/videohashes build: windows linux macos + +# duration + +duration-windows: + GOOS=windows GOARCH=amd64 EXTRA_LDFLAGS='-extldflags=-static -s -w' \ + go build -o dist/duration.exe ./cmd/duration + +duration-linux: + GOOS=linux GOARCH=amd64 EXTRA_LDFLAGS='-extldflags=-static -s -w' \ + go build -o dist/duration-linux ./cmd/duration + +duration-macos: + GOOS=darwin GOARCH=amd64 EXTRA_LDFLAGS='-extldflags=-static -s -w' \ + go build -o dist/duration-macos ./cmd/duration + +duration-build: duration-windows duration-linux duration-macos + +# phashcompare + +phashcompare-windows: + GOOS=windows GOARCH=amd64 EXTRA_LDFLAGS='-extldflags=-static -s -w' \ + go build -o dist/phashcompare.exe ./cmd/phashcompare + +phashcompare-linux: + GOOS=linux GOARCH=amd64 EXTRA_LDFLAGS='-extldflags=-static -s -w' \ + go build -o dist/phashcompare-linux ./cmd/phashcompare + +phashcompare-macos: + GOOS=darwin GOARCH=amd64 EXTRA_LDFLAGS='-extldflags=-static -s -w' \ + go build -o dist/phashcompare-macos ./cmd/phashcompare + +phashcompare-build: phashcompare-windows phashcompare-linux phashcompare-macos