aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 4dbefff..e170973 100644
--- a/Makefile
+++ b/Makefile
@@ -19,9 +19,15 @@ TMP_FILES != find -E * -regex ".*\.(trhtml|tmp)"
include config.mk
-
all: ${OBJ}
+dist: all
+ mkdir -p $@
+ rsync -R ${OBJ} $@/
+ cp -r assets/ $@/assets
+ cp search/index.cgi search/.htaccess $@/search/
+ @cd $@ && tar cf ../${ARCHIVE} .
+
install: all ${INSTALL_DIR}
mkdir -p ${DEST}
find . -name "*.html" -exec tar -rvf ${ARCHIVE} {} \;
@@ -39,7 +45,7 @@ deploy:
clean:
rm -f ${OBJ} ${ARCHIVE} ${TMP_FILES}
- rm -rf ${INSTALL_DIR}
+ rm -rf ${INSTALL_DIR} dist
.rhtml.html .rphp.php: navigation.rhtml.inc master.rhtml
${HYDE} -b ${BASEHREF} -f $< > $@