kisscommunity

kisscommunity.bvnf.space site sources
Log | Files | Refs | Submodules | README

commit 75773ff11c04a7b79f08806ad570b873f58d44a3
parent f13c9b63052cfb0b2ec69f9442edb2db0442768f
Author: aabacchus <ben@bvnf.space>
Date:   Mon, 16 May 2022 01:30:06 +0100

Makefile: remove empty dirs

Diffstat:
MMakefile | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -6,6 +6,9 @@ LDFLAGS = -static -s all: html html: build-page smu/smu + # first remove old html files and remove any empty dirs + find wiki -type f -name \*.html -exec rm {} \; + -find wiki -type d -exec rmdir {} \; 2>/dev/null find wiki -type d -exec sh -ec 'PATH="$$PWD/smu:$$PATH" ./build-page "$$0" >$$0/index.html' {} \; build-page: build-page.c