Skip to content

Commit

Permalink
update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
peolic committed Sep 23, 2022
1 parent 3873548 commit 89d46d6
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 89d46d6

Please sign in to comment.