diff options
-rw-r--r-- | Makefile | 7 | ||||
-rw-r--r-- | config.mk | 8 |
2 files changed, 9 insertions, 6 deletions
@@ -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 $< > $@ @@ -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 |