www

website
git clone ssh://anon@src.dalliard.ch/www
log | files | refs

commit 85b008ebbd78785d0a86424a41e23864ad631ef8
parent f3593aa24cb4841e1165579f7681c1ee65e3d16b
author: nathanael <nathanael@dalliard.ch>
date:   Sat, 13 Sep 2025 05:47:30 +0000

add clean to makefile

diffstat:
DMakefile | 12------------
Amakefile | 15+++++++++++++++
2 files changed, 15 insertions(+), 12 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,12 +0,0 @@ -deploy: build sync - -build: - @hugo - -sync: - @openrsync --rsync-path=openrsync -rv --del public/ s1:/var/www/www/ - -serve: - hugo server --buildDrafts --navigateToChanged - -.PHONY: deploy build sync serve diff --git a/makefile b/makefile @@ -0,0 +1,15 @@ +deploy: build sync + +build: clean + @hugo >/dev/null + +sync: + @openrsync --rsync-path=openrsync -rv --del public/ s1:/var/www/www/ + +serve: + hugo server --buildDrafts --navigateToChanged + +clean: + @if [ -d public/ ]; then rm -r public/; fi + +.PHONY: deploy build sync serve clean