-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
33 lines (26 loc) · 804 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
# 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-mail"
endif
## Not defined? Use default repo owner
ifeq ($(REPO_OWNER),)
REPO_OWNER="mrz1836"
endif
.PHONY: all
all: ## Runs multiple commands
@$(MAKE) test
.PHONY: clean
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
.PHONY: release
release:: ## Runs common.release then runs godocs
@$(MAKE) godocs
.PHONY: run-examples
run-examples: ## Runs all the examples
@go run examples/examples.go