aboutsummaryrefslogtreecommitdiff
path: root/tests/target/out-qualified
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-08-05 16:38:18 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-08-05 16:38:18 +0200
commit1b01309cf61f45ffc5862a2c3da8c71324bc77b3 (patch)
tree1072ef7d6fb35e3e86eb68ae4e5363a3742f4eee /tests/target/out-qualified
parent0f1697e7465f15590a115dedb4516568f1e30db8 (diff)
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.
Diffstat (limited to 'tests/target/out-qualified')
-rw-r--r--tests/target/out-qualified/src/build/bootstrap.build2
-rw-r--r--tests/target/out-qualified/src/buildfile5
-rw-r--r--tests/target/out-qualified/src/foo0
-rwxr-xr-xtests/target/out-qualified/test.sh3
4 files changed, 10 insertions, 0 deletions
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
--- /dev/null
+++ b/tests/target/out-qualified/src/foo
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/