diff options
author | 2022-05-11 17:57:05 +0200 | |
---|---|---|
committer | 2022-05-11 17:57:05 +0200 | |
commit | b5e1be88ddf4c626604149a04d9ed2fe1de8a052 (patch) | |
tree | a1bc4a3adc47c2d7a20dce52f61d368199afffbd /Makefile | |
parent | 7f9eab3496416e89227e6e0b851938e5f5c06b5c (diff) | |
download | website-b5e1be88ddf4c626604149a04d9ed2fe1de8a052.tar.gz website-b5e1be88ddf4c626604149a04d9ed2fe1de8a052.zip |
Add some file to compilation
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 14 insertions, 4 deletions
@@ -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} |