aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile18
1 files 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}