summaryrefslogtreecommitdiff
path: root/buildfile
blob: 2cf31c3e9c1613f44d1d93f810a7fd235b361f7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# file      : buildfile
# copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC
# license   : MIT; see accompanying LICENSE file

d = cli/ unit-tests/

# Building examples/ and tests/ while bootstrapping the compiler is tricky.
# What we are going to do is omit these two directories if there is no cli
# compiler yet. Once it's built the user can reconfigure the project which
# will enable tests and examples. Alternatively, the user can install the
# compiler and test the installation with out-of-tree builds of tests/ and
# examples/.
#
# @@ A problem with this approach is an old cli compiler installed in the
#    system -- it will be used for the project including tests and examples.
#
if $cli.configured
  d += tests/ examples/

./: $d doc{INSTALL LICENSE NEWS README version} file{manifest}
include $d

# Don't install examples, tests or the INSTALL file.
#
dir{examples/}:   install = false
dir{tests/}:      install = false
dir{unit-tests/}: install = false
doc{INSTALL}@./:  install = false