-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (23 loc) · 787 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
# Common makefile commands & variables between projects
include .make/Makefile.common
# Common Golang makefile commands & variables between projects
include .make/Makefile.go
## Not defined? Use default repo name which is the application
ifeq ($(REPO_NAME),)
REPO_NAME="go-api-router"
endif
## Not defined? Use default repo owner
ifeq ($(REPO_OWNER),)
REPO_OWNER="mrz1836"
endif
.PHONY: clean
all: ## Runs lint, test-short and vet
@$(MAKE) test-short
clean: ## Remove previous builds and any test cache data
@go clean -cache -testcache -i -r
@test $(DISTRIBUTIONS_DIR)
@if [ -d $(DISTRIBUTIONS_DIR) ]; then rm -r $(DISTRIBUTIONS_DIR); fi
release:: ## Runs common.release then runs godocs
@$(MAKE) godocs
run-examples: ## Runs all the examples
@go run examples/examples.go