aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2024-07-09 12:52:07 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2024-07-09 12:52:07 +0200
commit88bb64205b131b5f0ad5da7ff06a4a05ed4ae776 (patch)
tree2f171481b6c92f573ff7cd0ca94ad16ca9aeb628
parent4c097facc3829f9a92e3aff687b0445ee4f7810d (diff)
downloadwebsite-88bb64205b131b5f0ad5da7ff06a4a05ed4ae776.tar.gz
website-88bb64205b131b5f0ad5da7ff06a4a05ed4ae776.zip
Replace find command with a variable
-rw-r--r--Makefile5
1 files 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 $< > $@