mirror of
https://github.com/davegallant/rfd-fyi.git
synced 2025-08-05 15:03:38 +00:00
32 lines
647 B
Makefile
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
|