diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ca7409d --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +CC = hyde +DEST = ~/www/alessandroiezzi.it + +.SUFFIXES: .rhtml .html + +SOURCES != find . -name "*.rhtml" | grep -v master | sed 's|\./||g' +OBJECTS = ${SOURCES:.rhtml=.html} + +all: ${OBJECTS} + +install: + mkdir -p ${DEST} + find . -name "*.html" -exec tar -rvf out.tar {} \; + tar -xf out.tar -C ${DEST} + cp -r assets/ ${DEST}/assets + +clean: + find . -name "*.html" -exec rm -f {} \; + rm -f out.tar + rm -rf ${DEST}/* + +.rhtml.html: + ${CC} -f ${.ALLSRC} > ${.TARGET} |