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 --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Makefile') 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