-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
60 lines (48 loc) · 1.02 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
52
53
54
55
56
57
58
59
60
help:
@echo '### Available make targets:'
@grep PHONY: Makefile | cut -d: -f2 | sed '1d;s/^/make/'
.PHONY: fix
fix:
@echo "### Adding socket permissions to docker"
sudo groupadd docker && sudo gpasswd -a ${USER} docker && sudo systemctl restart docker
newgrp docker
.PHONY: dev
dev:
$(MAKE) storerun
$(MAKE) -j sourcedrun statusdrun updatedrun
.PHONY: mindev
mindev:
$(MAKE) storerun
$(MAKE) statusdrun
sourcedrun:
@echo "### sourced: localhost:8000"
$(MAKE) -C sourced run
statusdrun:
@echo "### statusd: localhost:5000"
$(MAKE) -C statusd run
storerun:
@echo "### postgres: localhost:5432"
$(MAKE) -C store start
updatedrun:
$(MAKE) -C updated run
.PHONY: seed
seed:
$(MAKE) -C store start
sleep 3
$(MAKE) -C statusd seed
.PHONY: stop
stop:
@echo "### stopping all services"
$(MAKE) -C store stop
.INTERRUPT:
@$(MAKE) stop
@exit 1
.PHONY: clean
clean:
$(MAKE) -C sourced clean
$(MAKE) -C statusd clean
$(MAKE) -C updated clean
$(MAKE) -C store stop
.PHONY: delete
delete: clean
$(MAKE) -C store delete