kisscommunity

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

commit cf8b06c4460445c3e8fd28dac38fac9384db55d2
parent 6933637e922ddc60d0b3ff76565221187a7c1813
Author: aabacchus <ben@bvnf.space>
Date:   Wed,  8 Jun 2022 15:16:05 +0100

Makefile: separate htmlclean into separate target

Diffstat:
MMakefile | 9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile @@ -5,12 +5,13 @@ 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 +html: build-page smu/smu htmlclean find wiki -type d -exec sh -ec 'PATH="$$PWD/smu:$$PATH" ./build-page "$$0" >$$0/index.html' {} \; +htmlclean: + -find wiki -type f -name \*.html -exec rm {} \; + -find wiki -type d -exec rmdir {} \; 2>/dev/null + build-page: build-page.c $(CC) $(CFLAGS) $(LDFLAGS) -o $@ build-page.c