diff options
author | 2021-12-27 15:58:27 +0100 | |
---|---|---|
committer | 2021-12-27 15:58:27 +0100 | |
commit | bd13286d87e6273db0f55e8fd95ba3730171def4 (patch) | |
tree | e577625a7afbe553925c8c99e2c50ae302a32362 /Makefile | |
download | website-bd13286d87e6273db0f55e8fd95ba3730171def4.tar.gz website-bd13286d87e6273db0f55e8fd95ba3730171def4.zip |
Initial commit
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} |