aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2022-05-11 17:57:05 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2022-05-11 17:57:05 +0200
commitb5e1be88ddf4c626604149a04d9ed2fe1de8a052 (patch)
treea1bc4a3adc47c2d7a20dce52f61d368199afffbd /Makefile
parent7f9eab3496416e89227e6e0b851938e5f5c06b5c (diff)
downloadwebsite-b5e1be88ddf4c626604149a04d9ed2fe1de8a052.tar.gz
website-b5e1be88ddf4c626604149a04d9ed2fe1de8a052.zip
Add some file to compilation
Diffstat (limited to 'Makefile')
-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}