From: Lady Date: Thu, 11 Jan 2024 01:20:19 +0000 (-0500) Subject: Allow separate find rules for includes X-Git-Tag: 0.2.4~2 X-Git-Url: https://git.ladys.computer/Shushe/commitdiff_plain/d94cfdc987aba3983f4945d59b02cbb062573432?ds=sidebyside;hp=d37062ed3c7a06adb006b405441d79fb0e134451 Allow separate find rules for includes This hypothetically enables the situation where `SRCDIR` and `INCLUDEDIR` are the same, and files are grouped into one or the other by some other factor. --- diff --git a/GNUmakefile b/GNUmakefile index a674178..174f340 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -139,6 +139,8 @@ MAGICDIR := $(patsubst ./%,%,$(THISDIR)/magic) # a period. FINDOPTS := -PE FINDRULES := -flags -nohidden -and -not -name '.*' +FINDINCLUDEOPTS := $(FINDOPTS) +FINDINCLUDERULES := $(FINDRULES) # The list of parsers for plaintext file types. # diff --git a/README.markdown b/README.markdown index 6bfa987..cae7ac1 100644 --- a/README.markdown +++ b/README.markdown @@ -158,6 +158,14 @@ The following additional variables can be used to control the behaviour Rules to use with `find` when searching for source files (default: `-flags -nohidden -and -not -name '.*'`). +- **`FINDINCLUDEOPTS`:** + Options to pass to `find` when searching for includes (default: + `$(FINDOPTS)`). + +- **`FINDINCLUDERULES`:** + Rules to use with `find` when searching for includes (default: + `$(FINDRULES)`). + - **`PARSERS`:** A white·space‐separated list of parsers to use (default: `$(THISDIR)/parsers/*.xslt`).