You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
331 B

BIN := .bin
start: $(BIN)/api
BODYTRACK_API_HOST="localhost" \
BODYTRACK_API_JWT_SECRET="ducks123" \
BODYTRACK_API_PG_HOST="localhost" \
BODYTRACK_API_PG_USERNAME="api" \
BODYTRACK_API_PG_PASSWORD="api-user" \
./$(BIN)/api
clean:
@rm -rf $(BIN)
.PHONY: clean start
$(BIN)/api:
go build -v -o $@ .
$(BIN):
mkdir -p $@