cosin-website/Makefile
s3lph 433b443374
All checks were successful
/ test (push) Successful in 3m20s
feat: add auto deployment via forgejo actions
2024-04-07 01:01:52 +02:00

31 lines
646 B
Makefile

# Hugo configuration.
HUGO_COMMAND := hugo
HUGO_OPTIONS := --printI18nWarnings --minify
OUTPUT_DIR := public
# Vnu validator configuration.
VNU_COMMAND := vnu
VNU_OPTIONS := --skip-non-html --also-check-css
# Non-file goals.
.PHONY: server generate validate upload clean
# Include the configuration files.
-include config.mk settings.mk
# Start a local development server.
server:
hugo $(HUGO_OPTIONS) server
# Generate static output files for deployment.
generate:
hugo $(HUGO_OPTIONS)
# Validate html and css in generated files.
validate: generate
$(VNU_COMMAND) $(VNU_OPTIONS) $(OUTPUT_DIR)
# Clean up.
clean:
rm -rf $(OUTPUT_DIR)