From 1b01309cf61f45ffc5862a2c3da8c71324bc77b3 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 5 Aug 2016 16:38:18 +0200 Subject: Implement out-qualified target syntax for setting target-specific vars So now we can do: doc{INSTALL}@./: install = false Note that so far that's the only place where we support out-qualification. Grep for @@ OUT to see other places. --- tests/target/out-qualified/src/build/bootstrap.build | 2 ++ tests/target/out-qualified/src/buildfile | 5 +++++ tests/target/out-qualified/src/foo | 0 tests/target/out-qualified/test.sh | 3 +++ 4 files changed, 10 insertions(+) create mode 100644 tests/target/out-qualified/src/build/bootstrap.build create mode 100644 tests/target/out-qualified/src/buildfile create mode 100644 tests/target/out-qualified/src/foo create mode 100755 tests/target/out-qualified/test.sh (limited to 'tests/target') diff --git a/tests/target/out-qualified/src/build/bootstrap.build b/tests/target/out-qualified/src/build/bootstrap.build new file mode 100644 index 0000000..056ee6f --- /dev/null +++ b/tests/target/out-qualified/src/build/bootstrap.build @@ -0,0 +1,2 @@ +project = test +amalgamation = diff --git a/tests/target/out-qualified/src/buildfile b/tests/target/out-qualified/src/buildfile new file mode 100644 index 0000000..1bcaa32 --- /dev/null +++ b/tests/target/out-qualified/src/buildfile @@ -0,0 +1,5 @@ +./: file{foo} + +# Use --verbose 6 to debug. +# +file{foo}@./: x = y diff --git a/tests/target/out-qualified/src/foo b/tests/target/out-qualified/src/foo new file mode 100644 index 0000000..e69de29 diff --git a/tests/target/out-qualified/test.sh b/tests/target/out-qualified/test.sh new file mode 100755 index 0000000..f1ece0e --- /dev/null +++ b/tests/target/out-qualified/test.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +b -q src/@out/ -- cgit v1.1