Files
rfd-fyi/Makefile
2022-11-05 18:34:17 -04:00

32 lines
647 B
Makefile

SHELL := bash
.SHELLFLAGS := -eu -o pipefail -c
.DELETE_ON_ERROR:
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
## help: Print this help message
help:
@echo
@echo "Usage:"
@echo
@sed -n 's/^##//p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /' | sort
@echo
.PHONY: help
## backend: Build and run the backend from source
backend:
@cd backend && go run .
.PHONY: server
## frontend: Build and run the frontend from source
frontend:
@npx vue-cli-service serve
.PHONY: server
## up: Build and run in docker compose
up:
@if [ -e .env ]; then echo "Missing file: .env"; fi
docker compose up -d
.PHONY: up