From 88bb64205b131b5f0ad5da7ff06a4a05ed4ae776 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Tue, 9 Jul 2024 12:52:07 +0200 Subject: Replace find command with a variable --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1b17b9a..4dbefff 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,8 @@ CFG != find -E * -regex '.*\.r(html|php)\.config' OBJ = ${SRC:.rhtml=.html} OBJ := ${OBJ:.rphp=.php} +TMP_FILES != find -E * -regex ".*\.(trhtml|tmp)" + include config.mk @@ -36,9 +38,8 @@ deploy: for i in `find * -name "*.html"`; do echo $i | sed "s/`basename $i`//"; done clean: - rm -f ${OBJ} ${ARCHIVE} + rm -f ${OBJ} ${ARCHIVE} ${TMP_FILES} rm -rf ${INSTALL_DIR} - find -E * -regex ".*\.(trhtml|tmp)" -exec rm -f {} \; .rhtml.html .rphp.php: navigation.rhtml.inc master.rhtml ${HYDE} -b ${BASEHREF} -f $< > $@ -- cgit v1.2.3