forked from bitcoin-sv/spv-wallet-go-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (37 loc) · 1.29 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Common makefile commands & variables between projects
include .make/common.mk
# Common Golang makefile commands & variables between projects
include .make/go.mk
## Not defined? Use default repo name which is the application
ifeq ($(REPO_NAME),)
REPO_NAME="go-buxclient"
endif
## Not defined? Use default repo owner
ifeq ($(REPO_OWNER),)
REPO_OWNER="BuxOrg"
endif
.PHONY: all
all: ## Runs multiple commands
@$(MAKE) test-coverage-custom
.PHONY: clean
clean: ## Remove previous builds and any cached data
@echo "cleaning local cache..."
@go clean -cache -testcache -i -r
@$(MAKE) clean-mods
@test $(DISTRIBUTIONS_DIR)
@if [ -d $(DISTRIBUTIONS_DIR) ]; then rm -r $(DISTRIBUTIONS_DIR); fi
.PHONY: install-all-contributors
install-all-contributors: ## Installs all contributors locally
@echo "installing all-contributors cli tool..."
@yarn global add all-contributors-cli
.PHONY: release
release:: ## Runs common.release then runs godocs
@$(MAKE) godocs
.PHONY: test-coverage-custom
test-coverage-custom: ## Custom package test coverage
@echo "running coverage..."
@go test -coverpkg=./... -covermode=atomic -coverprofile=coverage.out ./...
.PHONY: update-contributors
update-contributors: ## Regenerates the contributors html/list
@echo "generating contributor html..."
@all-contributors generate