From bd13286d87e6273db0f55e8fd95ba3730171def4 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Mon, 27 Dec 2021 15:58:27 +0100 Subject: Initial commit --- Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ca7409d --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +CC = hyde +DEST = ~/www/alessandroiezzi.it + +.SUFFIXES: .rhtml .html + +SOURCES != find . -name "*.rhtml" | grep -v master | sed 's|\./||g' +OBJECTS = ${SOURCES:.rhtml=.html} + +all: ${OBJECTS} + +install: + mkdir -p ${DEST} + find . -name "*.html" -exec tar -rvf out.tar {} \; + tar -xf out.tar -C ${DEST} + cp -r assets/ ${DEST}/assets + +clean: + find . -name "*.html" -exec rm -f {} \; + rm -f out.tar + rm -rf ${DEST}/* + +.rhtml.html: + ${CC} -f ${.ALLSRC} > ${.TARGET} -- cgit v1.2.3