From 89410758ebe8e22cca086670d5c57ae30923e664 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Tue, 25 Jun 2024 14:05:15 -0700 Subject: [PATCH] Update Makefile --- Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 0df33d2..7ac3a94 100644 --- a/Makefile +++ b/Makefile @@ -3,11 +3,13 @@ help: ## display this help @awk 'BEGIN{FS = ":.*##"; printf "\033[1m\nUsage\n \033[1;92m make\033[0;36m \033[0m\n"} /^[a-zA-Z0-9_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } ' $(MAKEFILE_LIST) -build: ## compile src/ into out/ with pagefind +build: ## compile src/ into out/ ./build.py out/ + +index: ## generate search index with pagefind pagefind --site out/ -clean: ## delete out/ and src/ +clean: ## delete out/ and srv/ test -e out && rm -rf out || true test -e srv && rm -rf srv || true @@ -17,11 +19,10 @@ watch: ## rebuild on changes serve: ## serve out/ python -m http.server --directory out/ -pubdate: ## Replace "pubdate: now" with the current date - sed -i "s/pubdate: now/pubdate: $$(date -Isec)/" src/blog/**/*.md - upload: ## build to srv/ and upload to www.alogoulogoi.com + git stash -u test -e srv && rm -rf srv || true ./build.py srv/ pagefind --site srv/ rsync -av --delete srv/ ssh.alogoulogoi.com:/srv/www.alogoulogoi.com + git stash pop