aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-06-12 18:58:34 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-06-12 18:58:34 +0200
commit700f2e7c4be9c8caa0ac0fcd58b1a0ce505e33fa (patch)
treee8d1c11ba982372edd8e5d24f075728d0949b979
parent286bcb4988768f149c752231d66234a3d2a38590 (diff)
Add example of more complex pattern exclusion
-rw-r--r--doc/manual.cli10
1 files changed, 9 insertions, 1 deletions
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