From: Nicholas D Steeves Date: Mon, 27 Nov 2023 11:19:23 -0500 Subject: fix broken wildcard usage in Makefile Upstream's method works with MacOS and/or BSD make, but is broken with GNU Make (and possibly others). At this time it's not clear whether upstream would prefer this solution, or one that uses the "find" program (which will probably not work on Windows). Bug: https://github.com/rnkn/fountain-mode/issues/137 --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 4121435..48b7f06 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,11 @@ TEXI_FILE = ${DOCS_DIR}/${PROG}.texi INFO_FILE = ${DOCS_DIR}/${PROG}.info CSS_FILE = ${DOCS_DIR}/style.css HTML_DIR = ${DOCS_DIR}/html +GENERATED_DOCS = ${INFO_FILE} +GENERATED_DOCS += ${DOCS_DIR}/dir +GENERATED_DOCS += ${DOCS_DIR}/*.epub ${DOCS_DIR}/*.pdf ${HTML_DIR}/*.html +GENERATED_DOCS += ${DOCS_DIR}/*.aux ${DOCS_DIR}/*.fn ${DOCS_DIR}/*.log +GENERATED_DOCS += ${DOCS_DIR}/*.toc ${DOCS_DIR}/*.vr VERS = ${shell grep -oE -m1 'Version:[ 0-9.]+' ${LISP_FILE} | tr -d :} TAG = ${shell echo ${VERS} | sed -E 's/Version:? ([0-9.]+)/v\1/'} INIT = \ @@ -55,7 +60,4 @@ tag-release: check compile clean: rm -f ${PROG}.elc - rm -f ${INFO_FILE} - rm -f ${DOCS_DIR}/dir - rm -f ${DOCS_DIR}/${PROG}.{aux,fn,log,toc,vr,epub,pdf} - rm -rf ${HTML_DIR}/*.html + rm -rf ${GENERATED_DOCS}