From 076efaaba2c23863b53fdd503fbe49b066c6a9b2 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Tue, 9 Jul 2024 13:26:13 +0200 Subject: Add `dist` target --- .gitignore | 2 ++ Makefile | 10 ++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index cb590a0..b2211b8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ *.html ip.php out.tar +dist + 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 $< > $@ -- cgit v1.2.3