-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
executable file
·33 lines (25 loc) · 911 Bytes
/
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
30
31
32
33
GO ?= go
default: build
watch:
@air
start:
@$(GO) run github.com/ali-furkqn/stona
build:
@$(GO) build -o stona .
# I may will seperate it like core and cli
release:
@echo [Stona Release] - Building for darwin
@GOOS=darwin GOARCH=amd64 $(GO) build -o bin/darwin/stona-amd64
@echo [Stona Release] - Building for linux
@GOOS=linux GOARCH=amd64 $(GO) build -o bin/linux/stona-amd64
@GOOS=linux GOARCH=arm $(GO) build -o bin/linux/stona-arm
@GOOS=linux GOARCH=arm64 $(GO) build -o bin/linux/stona-arm64
@echo [Stona Release] - Building for windows
@GOOS=windows GOARCH=amd64 $(GO) build -o bin/win/stona-amd64.exe
@GOOS=windows GOARCH=arm $(GO) build -o bin/win/stona-arm.exe
# NOTE: Add test
install:
@echo [Stona Install] - Downloading dependencies...
@go mod download
@echo [Stona Install] - Dependencies downloaded
.PHONY: build start watch release install