aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
blob: fe643a8d20dd874ca29ef2e57d811b58634fb602 (plain)
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
.PHONY: build
build:
	docker compose build

.PHONY: up
up:
	docker compose up -d

.PHONY: down
down:
	docker compose down

.PHONY: psql
psql: up
	docker compose exec db psql --user=postgres albatross

.PHONY: sqldef-dryrun
sqldef-dryrun: down build
	docker compose up -d db
	docker compose run --no-TTY tools psqldef --dry-run < ./backend/schema.sql

.PHONY: sqldef
sqldef: down build
	docker compose up -d db
	docker compose run --no-TTY tools psqldef < ./backend/schema.sql

.PHONY: oapi-codegen
oapi-codegen:
	cd backend; make oapi-codegen

.PHONY: sqlc
sqlc:
	cd backend; make sqlc