adding make file stuff

This commit is contained in:
Juan 2026-02-28 21:12:23 -05:00
parent b4be1547cf
commit 97763917d8
7 changed files with 37 additions and 13 deletions

19
Makefile Normal file
View file

@ -0,0 +1,19 @@
include .env.dev
export
.PHONY: dev dev-hugo dev-isso prod-build
# Run hugo dev server + isso in parallel
dev:
$(MAKE) dev-isso & $(MAKE) dev-hugo; wait
dev-hugo:
hugo server -D --bind 0.0.0.0
dev-isso:
isso -c isso.dev.cfg run
# Build for production using .env.prod
prod-build:
@test -f .env.prod || (echo "Error: .env.prod not found. Copy .env.prod.example to .env.prod and fill in your values." && exit 1)
export $$(cat .env.prod | xargs) && hugo --minify