-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (23 loc) · 912 Bytes
/
Makefile
File metadata and controls
29 lines (23 loc) · 912 Bytes
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
.PHONY: build-all build-fmove build-ffmpegconv clean help
GOOS = $(shell go env GOOS)
## build-all: создать исполняемые файлы всех утилит
build-all : build-fmove build-ffmpegconv
## build-fmove: создать исполняемый файл утилиты fmove
build-fmove:
ifeq ($(GOOS),windows)
go build -o bin/fmove.exe -ldflags "-s -w" cmd/fmove/main.go
else
go build -o bin/fmove -ldflags "-s -w" cmd/fmove/main.go
endif
## build-ffmpegconv: создать исполняемый файл утилиты ffmpegconv
build-ffmpegconv:
ifeq ($(GOOS),windows)
go build -o bin/ffmpegconv.exe -ldflags "-s -w" cmd/ffmpegconv/main.go
else
go build -o bin/ffmpegconv -ldflags "-s -w" cmd/ffmpegconv/main.go
endif
## clean: удалить содержимое папки bin
clean:
rm -f bin/*
help: Makefile
@sed -n 's/^##//p' $< | column -t -s ':' | sed -e 's/^/ /'