-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile
79 lines (62 loc) · 1010 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
.DEFAULT_GOAL:=all
# TODO: include "check" once the repo is > 30 days old
# all: check install
all: install
# standard target for GNU Make
.PHONY: check
check:
@yarn lint
# convenient alias
.PHONY: test
test: check
# convenient alias
.PHONY: lint
lint: check
.PHONY: start
start:
@docker-compose up -d --build
# convenient alias
.PHONY: run
run: start
# convenient alias
.PHONY: serve
serve: start
# convenient alias
.PHONY: up
up: start
.PHONY: stop
stop:
@docker-compose down
# convenient alias
.PHONY: down
down: stop
.PHONY: restart
restart: stop start
.PHONY: install
install:
@docker run \
--rm \
-it \
-v $(shell pwd):/app \
-w /app \
-t squidfunk/mkdocs-material \
build \
--clean \
--verbose \
--strict \
--config-file mkdocs.yml \
--site-dir ./docs
# convenient alias
.PHONY: build
build: install
.PHONY: pr
pr:
@git-town new-pull-request
.PHONY: sync
sync:
@git-town sync
@git-town prune-branches
.PHONY: main
main:
@git checkout main
@make sync