aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile7
-rw-r--r--config.mk8
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