From 9ef9eafca42b882c13cc9b333cf49c5501ec385f Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 15 Jul 2017 15:28:00 +0300 Subject: Make use of wildcards in buildfiles --- examples/buildfile | 4 +--- examples/features/buildfile | 2 +- examples/file/buildfile | 2 +- examples/hello/buildfile | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) (limited to 'examples') diff --git a/examples/buildfile b/examples/buildfile index c64a34f..07ff2d7 100644 --- a/examples/buildfile +++ b/examples/buildfile @@ -2,6 +2,4 @@ # copyright : Copyright (c) 2009-2017 Code Synthesis Tools CC # license : MIT; see accompanying LICENSE file -d = features/ file/ hello/ -./: $d doc{README} -include $d +./: {*/ -build/} README diff --git a/examples/features/buildfile b/examples/features/buildfile index ea8feee..c8342e8 100644 --- a/examples/features/buildfile +++ b/examples/features/buildfile @@ -2,7 +2,7 @@ # copyright : Copyright (c) 2009-2017 Code Synthesis Tools CC # license : MIT; see accompanying LICENSE file -exe{driver}: cxx{driver} cli.cxx{options} doc{README} +exe{driver}: {hxx cxx}{* -options} cli.cxx{options} doc{README} cxx.poptions =+ "-I$out_base" diff --git a/examples/file/buildfile b/examples/file/buildfile index 7ae55df..3190cca 100644 --- a/examples/file/buildfile +++ b/examples/file/buildfile @@ -2,7 +2,7 @@ # copyright : Copyright (c) 2009-2017 Code Synthesis Tools CC # license : MIT; see accompanying LICENSE file -exe{driver}: cxx{driver} cli.cxx{options} doc{README} file{test.ops} +exe{driver}: {hxx cxx}{* -options} cli.cxx{options} doc{README} file{test.ops} exe{driver}: test.arguments = --options-file $src_base/test.ops cxx.poptions =+ "-I$out_base" diff --git a/examples/hello/buildfile b/examples/hello/buildfile index 9991aa9..c72b525 100644 --- a/examples/hello/buildfile +++ b/examples/hello/buildfile @@ -2,7 +2,7 @@ # copyright : Copyright (c) 2009-2017 Code Synthesis Tools CC # license : MIT; see accompanying LICENSE file -exe{driver}: cxx{driver} cli.cxx{hello} doc{README} +exe{driver}: {hxx cxx}{* -hello} cli.cxx{hello} doc{README} exe{driver}: test.arguments = --greeting Hi John Jane cxx.poptions =+ "-I$out_base" -- cgit v1.1