From 700f2e7c4be9c8caa0ac0fcd58b1a0ce505e33fa Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 12 Jun 2017 18:58:34 +0200 Subject: Add example of more complex pattern exclusion --- doc/manual.cli | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/manual.cli b/doc/manual.cli index 7cacdce..55b0443 100644 --- a/doc/manual.cli +++ b/doc/manual.cli @@ -92,7 +92,15 @@ all match either files or directories. For example: \ exe{hello}: cxx{f* -foo +*oo} # Exclusion has no effect. exe{hello}: cxx{f* +*oo} # Ok, no duplicates. -./: {*/ -build} # Error: exclusion must match a directory. +./: {*/ -build} # Error: exclusion not a directory. +\ + +As a more realistic example, let's say we want to exclude source files that +reside in the \c{test/} directories (and their subdirectories) anywhere in +the tree. This can be achieved with the following pattern: + +\ +exe{hello}: cxx{** -***/test/**} \ If many inclusions or exclusions need to be specified, then an -- cgit v1.1