-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (33 loc) · 730 Bytes
/
Makefile
File metadata and controls
45 lines (33 loc) · 730 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
.PHONY: build run test clean download tidy
# Default Go parameters
GOCMD=go
GOBUILD=$(GOCMD) build
GOCLEAN=$(GOCMD) clean
GOTEST=$(GOCMD) test
GOGET=$(GOCMD) get
GOMOD=$(GOCMD) mod
GORUN=$(GOCMD) run
# Binary output
BINARY_NAME=mercon
BUILD_DIR=build
# Main
MAIN_PATH=cmd/mercon/main.go
all: clean build
build:
mkdir -p $(BUILD_DIR)
$(GOBUILD) -o $(BUILD_DIR)/$(BINARY_NAME) $(MAIN_PATH)
run:
$(GORUN) $(MAIN_PATH)
simple_run:
$(GORUN) cmd/simple_run/main.go -wallet F8nDj7QPZdTdxToZNZbahnytv3jUZTn9scsimAeJ3n75
act6:
$(GORUN) cmd/act6/main.go -wallet 3Tbv9eCWpnvcdA3bpsgCQA91yQGywpdM1U3VKhCLg4JL
test:
$(GOTEST) -v ./...
clean:
$(GOCLEAN)
rm -rf $(BUILD_DIR)
download:
$(GOMOD) download
tidy:
$(GOMOD) tidy