From: Lady Date: Sat, 25 May 2024 04:14:34 +0000 (-0400) Subject: Wrap EXTRAFINDRULES in parentheses X-Git-Tag: 0.9.3 X-Git-Url: https://git.ladys.computer/Shushe/commitdiff_plain/d770bf2a7d9bf73560323fe027c9fa0d65d27fcb?ds=inline;hp=655dfa89c0782dd1252cdca50ef4182e4dc8cf95 Wrap EXTRAFINDRULES in parentheses It shouldn’t be required that users do this. --- diff --git a/GNUmakefile b/GNUmakefile index 3db4e3c..eb2a96c 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -173,8 +173,8 @@ THISDIR := $(patsubst %/,%,$(dir $(lastword $(MAKEFILE_LIST)))) # By default, `find´ will ignore files which begin with a period and those which are likely to cause problems for `make´. EXTRAFINDRULES := EXTRAFINDINCLUDERULES := -FINDRULES := ! '(' '(' -name '[.-]*' -a ! -name '.' -o -name '*[][*?:|$$%\#\\; ]*' -o -name '*[)]' ')' -a -prune ')'$(if $(EXTRAFINDRULES), -a $(EXTRAFINDRULES),) -FINDINCLUDERULES := $(FINDRULES)$(if $(EXTRAFINDINCLUDERULES), -a $(EXTRAFINDINCLUDERULES),) +FINDRULES := ! '(' '(' -name '[.-]*' -a ! -name '.' -o -name '*[][*?:|$$%\#\\; ]*' -o -name '*[)]' ')' -a -prune ')'$(if $(EXTRAFINDRULES), -a '(' $(EXTRAFINDRULES) ')',) +FINDINCLUDERULES := $(FINDRULES)$(if $(EXTRAFINDINCLUDERULES), -a '(' $(EXTRAFINDINCLUDERULES) ')',) # The list of magic files to use when determining media types. #