From b5e1be88ddf4c626604149a04d9ed2fe1de8a052 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Wed, 11 May 2022 17:57:05 +0200 Subject: Add some file to compilation --- Makefile | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 2a4e286..c72970b 100644 --- a/Makefile +++ b/Makefile @@ -1,27 +1,37 @@ CC = hyde DEST = ~/www/alessandroiezzi.it -.SUFFIXES: .rhtml .html +.SUFFIXES: .rhtml .html .tmpl .trhtml .rhtml.config SOURCES != find . -name "*.rhtml" | grep -v master | sed 's|\./||g' OBJECTS = ${SOURCES:.rhtml=.html} +CONFIGS != find . -name "*.rhtml.config" | grep -v master | sed 's|\./||g' + all: ${OBJECTS} ip.php install: mkdir -p ${DEST} find . -name "*.html" -exec tar -rvf out.tar {} \; + cp ip.php ${DEST}/ tar -xf out.tar -C ${DEST} cp -r assets/ ${DEST}/assets + cp search/index.cgi ${DEST}/search/ + cp search/.htaccess ${DEST}/search/ + +deploy: + for i in `find * -name "*.html"`; do echo $i | sed "s/`basename $i`//"; done clean: find . -name "*.html" -exec rm -f {} \; + find . -name "*.trhtml" -exec rm -f {} \; + find . -name "*.tmp" -exec rm -f {} \; rm -f out.tar rm -rf ${DEST}/* - rm ip.php + rm -f ip.php -.rhtml.html: - ${CC} -f ${.ALLSRC} > ${.TARGET} +.rhtml.html: navigation.rhtml.inc master.rhtml + ${CC} -f ${.IMPSRC} > ${.TARGET} ip.php: ip.rhtml.php ${CC} -f ${.ALLSRC} > ${.TARGET} -- cgit v1.2.3