20 lines
397 B
Makefile
20 lines
397 B
Makefile
|
.PHONY: up down
|
||
|
|
||
|
GOFILES=$(shell find . -name '*.go' -o -name 'go.*')
|
||
|
STATICFILES=$(shell find . -name '*.js' -o -name '*.css' -o -name '*.html')
|
||
|
SQLFILES=$(shell find . -name '*.sql')
|
||
|
|
||
|
build: server manager
|
||
|
|
||
|
server: $(GOFILES) $(STATICFILES)
|
||
|
go build -o server ./cmd/serve
|
||
|
|
||
|
manager: $(GOFILES) $(SQLFILES)
|
||
|
go build -o manager ./cmd/manage
|
||
|
|
||
|
up:
|
||
|
docker compose up -d
|
||
|
|
||
|
down:
|
||
|
docker compose down
|