aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/context.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-06-29 08:45:09 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-06-29 08:45:09 +0200
commit7daa7916182025d737f439da5fe5d67fe1a2fb8c (patch)
tree7604da6f22d2262dbdddd60053cc897dc5b478b3 /libbuild2/context.cxx
parentd1d28c5f261e39013b8b987d58b3c0acaa8c762b (diff)
Add legal{} target type and config.install.legal variable
This allows separation of legal files (LICENSE, AUTHORS, etc) from other documentation. For example: ./: ... doc{README} legal{LICENSE} $ b install ... config.install.legal=/usr/share/licenses/hello/
Diffstat (limited to 'libbuild2/context.cxx')
-rw-r--r--libbuild2/context.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/libbuild2/context.cxx b/libbuild2/context.cxx
index 202cd35..d62965c 100644
--- a/libbuild2/context.cxx
+++ b/libbuild2/context.cxx
@@ -264,6 +264,7 @@ namespace build2
t.insert<fsdir> ();
t.insert<exe> ();
t.insert<doc> ();
+ t.insert<legal> ();
t.insert<man> ();
t.insert<man1> ();