-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
51 lines (37 loc) · 1.13 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
48
49
50
51
DOCKER_COMPOSE = docker-compose
##
##Project
##-------
##
build:
$(DOCKER_COMPOSE) up -d --build --force-recreate
kill:
$(DOCKER_COMPOSE) stop
$(DOCKER_COMPOSE) rm -f
$(DOCKER_COMPOSE) down --volumes --remove-orphans
install: ## Install and start the project
install: build start
reset: ## Stop and start a fresh install of the project
reset: kill install
start: ## Start the project
$(DOCKER_COMPOSE) start
stop: ## Stop the project
$(DOCKER_COMPOSE) stop
no-docker:
$(eval DOCKER_COMPOSE := \#)
compile: ## Truffle compilation
compile:
$(DOCKER_COMPOSE) exec truffle truffle compile
migrate: ## Truffle migration
migrate:
$(DOCKER_COMPOSE) exec truffle truffle migrate
console: ## Run the interactive truffle console
console:
$(DOCKER_COMPOSE) exec truffle truffle console
test: ## Run the test suite
$(DOCKER_COMPOSE) exec truffle truffle test
.PHONY: build kill install reset start stop no-docker compile migrate console test
.DEFAULT_GOAL := help
help:
@grep -E '(^[a-zA-Z_-]+:.*?##.*$$)|(^##)' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}' | sed -e 's/\[32m##/[33m/'
.PHONY: help