-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (21 loc) · 858 Bytes
/
Makefile
File metadata and controls
25 lines (21 loc) · 858 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
.PHONY: build-apimonkey-windows
build-apimonkey-windows:
@rm -rf dist && GOOS=windows go build -o dist/com.ftt.apimonkey.exe
@cd resources && cp -a . ../dist/
.PHONY: dev-apimonkey
dev-apimonkey: build-apimonkey-windows
@cd /mnt/c/Users/iqpir/AppData/Roaming/Elgato/StreamDeck/Plugins/com.ftt.apimonkey.sdPlugin/ && rm -rf *
@cd cmd/client/apimonkey/dist/ && cp -a . /mnt/c/Users/iqpir/AppData/Roaming/Elgato/StreamDeck/Plugins/com.ftt.apimonkey.sdPlugin/ -f
.PHONY: tidy-modules
tidy-modules:
@find . -type d \( -name build -prune \) -o -name go.mod -print | while read -r gomod_path; do \
dir_path=$$(dirname "$$gomod_path"); \
echo "Executing 'go mod tidy' in directory: $$dir_path"; \
(cd "$$dir_path" && GOPROXY=$(GOPROXY) go mod tidy) || exit 1; \
done
.PHONY: lint
lint:
golangci-lint run
.PHONY: generate
generate:
go generate ./...