-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (32 loc) · 889 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
OS := $(shell uname)
BASH_AUTO := ./scripts/autostart.sh
POWERSHELL_AUTO := ./scripts/autostart.ps1
all: compose migrate-up migrate-drop migrate-down psql-start in-psql auto-start
compose:
ifeq ($(OS),Linux)
. ./scripts/docker-compose_start.sh
else ifeq ($(OS),Darwin)
. ./scripts/docker-compose_start.sh
else ifeq ($(OS),Windows_NT)
@powershell -ExecutionPolicy Bypass -File ./scripts/docker-compose_start.ps1
endif
migrate-up:
. ./scripts/migrate-up.sh
migrate-down:
. ./scripts/migrate-down.sh
migrate-drop:
. ./scripts/migrate-drop.sh
psql-start:
. ./scripts/psql_start.sh
in-psql:
. ./scripts/lookup-in-psql.sh
auto-start:
ifeq ($(OS),Linux)
. ./scripts/autostart.sh
else ifeq ($(OS),Darwin)
. ./scripts/autostart.sh
else ifeq ($(OS),Windows_NT)
@powershell -ExecutionPolicy Bypass -File ./scripts/autostart.ps1
endif
@$(MAKE) compose
.PHONY: auto-start compose