-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (19 loc) 路 749 Bytes
/
Copy pathMakefile
File metadata and controls
24 lines (19 loc) 路 749 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
# Linux Makefile | Golang & zip are required for build.
VERSION = @latest
RELEASE_DIR = dist/$(VERSION)
ARCHIVE_DIR = dist/pokesearch
build: release build_win build_mac build_lin
release:
mkdir -p $(RELEASE_DIR)
build_win:
GOOS=windows GOARCH=amd64 go build -o $(ARCHIVE_DIR)
zip -FSj $(RELEASE_DIR)/pokesearch$(VERSION)-win-amd64.zip $(ARCHIVE_DIR)/*
rm $(ARCHIVE_DIR)/pokesearch*
build_mac:
GOOS=darwin GOARCH=amd64 go build -o $(ARCHIVE_DIR)
tar -C $(ARCHIVE_DIR) -cvzf $(RELEASE_DIR)/pokesearch$(VERSION)-mac-amd64.tar.gz .
rm $(ARCHIVE_DIR)/pokesearch*
build_lin:
GOOS=linux GOARCH=amd64 go build -o $(ARCHIVE_DIR)
tar -C $(ARCHIVE_DIR) -cvzf $(RELEASE_DIR)/pokesearch$(VERSION)-lin-amd64.tar.gz .
rm $(ARCHIVE_DIR)/pokesearch*