26 lines
554 B
Makefile
26 lines
554 B
Makefile
.PHONY: help build dev deploy clean
|
|
|
|
# Default target
|
|
help:
|
|
@echo "Available targets:"
|
|
@echo " make dev - Start Hugo development server with drafts"
|
|
@echo " make build - Build the site for production"
|
|
@echo " make deploy - Build and deploy using hugo deploy"
|
|
@echo " make clean - Remove generated files"
|
|
|
|
# Development server with live reload
|
|
dev:
|
|
hugo server -D --bind 0.0.0.0
|
|
|
|
# Build the site
|
|
build:
|
|
hugo --minify
|
|
|
|
# Deploy to configured target
|
|
deploy: build
|
|
hugo deploy
|
|
|
|
# Clean build artifacts
|
|
clean:
|
|
rm -rf public/ resources/
|