-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (24 loc) · 1.09 KB
/
Makefile
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-apimonkey-windows
build-apimonkey-windows:
@cd cmd/client/apimonkey && rm -rf dist && GOOS=windows go build -o dist/com.ftt.apimonkey.exe
@cd cmd/client/apimonkey/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: build-githubmonkey
build-githubmonkey:
@cd cmd/server/githubmonkey && rm -rf dist && GOOS=linux go build -o dist/githubmonkey
.PHONY: azure-githubmonkey
azure-githubmonkey: build-githubmonkey
@cd cmd/server/githubmonkey/.azure && cp -a . ../dist/
.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