From 4c097facc3829f9a92e3aff687b0445ee4f7810d Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Tue, 9 Jul 2024 12:50:12 +0200 Subject: Rename DEST variable to INSTALL_DIR --- Makefile | 7 +++++-- config.mk | 8 ++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index fedfab2..1b17b9a 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ include config.mk all: ${OBJ} -install: all +install: all ${INSTALL_DIR} mkdir -p ${DEST} find . -name "*.html" -exec tar -rvf ${ARCHIVE} {} \; cp ip.php ${DEST}/ @@ -29,13 +29,16 @@ install: all cp search/index.cgi ${DEST}/search/ cp search/.htaccess ${DEST}/search/ +${INSTALL_DIR}: + mkdir -p $@ + deploy: for i in `find * -name "*.html"`; do echo $i | sed "s/`basename $i`//"; done clean: rm -f ${OBJ} ${ARCHIVE} + rm -rf ${INSTALL_DIR} find -E * -regex ".*\.(trhtml|tmp)" -exec rm -f {} \; - rm -rf ${DEST}/* .rhtml.html .rphp.php: navigation.rhtml.inc master.rhtml ${HYDE} -b ${BASEHREF} -f $< > $@ diff --git a/config.mk b/config.mk index 266263a..127f495 100644 --- a/config.mk +++ b/config.mk @@ -1,4 +1,4 @@ -BASEHREF = file://`realpath .` -HYDE = hyde -DEST = ~/www/alessandroiezzi.it -ARCHIVE = out.tar \ No newline at end of file +BASEHREF = file://`realpath .` +HYDE = hyde +INSTALL_DIR = ~/www/alessandroiezzi.it +ARCHIVE = out.tar \ No newline at end of file -- cgit v1.2.3