.DEFAULT_GOAL := help # Load environment variables from .env file include .env help: @echo "Available targets:" @echo " publish Restart Docker Compose (or run 'npx quartz build --serve' with local=True)." @echo " preview Run 'npx quartz build --serve' with specific directories." # Target-specific variables for the publish target publish: @if [ "$(clean)" = "True" ]; then \ ./scripts/publish.py clean; \ else \ ./scripts/publish.py; \ fi @if [ "$(local)" = "True" ]; then \ echo "Running npx quartz build --serve"; \ npx quartz build --serve; \ else \ echo "Restarting Docker Compose"; \ docker compose restart; \ fi