Skip to content

Commit 89d46d6

Browse files
committed
update Makefile
1 parent 3873548 commit 89d46d6

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

Makefile

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ update:
22
go get github.com/stashapp/stash@develop && \
33
go mod tidy
44

5+
# videohashes
6+
57
windows:
68
GOOS=windows GOARCH=amd64 EXTRA_LDFLAGS='-extldflags=-static -s -w' \
79
go build -o dist/videohashes.exe ./cmd/videohashes
@@ -15,3 +17,35 @@ macos:
1517
go build -o dist/videohashes-macos ./cmd/videohashes
1618

1719
build: windows linux macos
20+
21+
# duration
22+
23+
duration-windows:
24+
GOOS=windows GOARCH=amd64 EXTRA_LDFLAGS='-extldflags=-static -s -w' \
25+
go build -o dist/duration.exe ./cmd/duration
26+
27+
duration-linux:
28+
GOOS=linux GOARCH=amd64 EXTRA_LDFLAGS='-extldflags=-static -s -w' \
29+
go build -o dist/duration-linux ./cmd/duration
30+
31+
duration-macos:
32+
GOOS=darwin GOARCH=amd64 EXTRA_LDFLAGS='-extldflags=-static -s -w' \
33+
go build -o dist/duration-macos ./cmd/duration
34+
35+
duration-build: duration-windows duration-linux duration-macos
36+
37+
# phashcompare
38+
39+
phashcompare-windows:
40+
GOOS=windows GOARCH=amd64 EXTRA_LDFLAGS='-extldflags=-static -s -w' \
41+
go build -o dist/phashcompare.exe ./cmd/phashcompare
42+
43+
phashcompare-linux:
44+
GOOS=linux GOARCH=amd64 EXTRA_LDFLAGS='-extldflags=-static -s -w' \
45+
go build -o dist/phashcompare-linux ./cmd/phashcompare
46+
47+
phashcompare-macos:
48+
GOOS=darwin GOARCH=amd64 EXTRA_LDFLAGS='-extldflags=-static -s -w' \
49+
go build -o dist/phashcompare-macos ./cmd/phashcompare
50+
51+
phashcompare-build: phashcompare-windows phashcompare-linux phashcompare-macos

0 commit comments

Comments
 (0)