summaryrefslogtreecommitdiffstats
path: root/makefile
blob: 3ae8eecb4d969d023517e7397314200f942c1398 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# file      : makefile
# author    : Boris Kolpackov <boris@codesynthesis.com>
# copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC
# license   : MIT; see accompanying LICENSE file

include $(dir $(lastword $(MAKEFILE_LIST)))build/bootstrap.make

default  := $(out_base)/
test     := $(out_base)/.test
install  := $(out_base)/.install
clean    := $(out_base)/.clean
cleandoc := $(out_base)/.cleandoc

# Build.
#
$(default):           \
$(out_base)/cli/      \
$(out_base)/doc/      \
$(out_base)/tests/    \
$(out_base)/examples/

# Test.
#
$(test): $(out_base)/tests/.test

# Install.
#
$(install): $(out_base)/cli/.install     \
            $(out_base)/doc/.install     \
	    $(out_base)/examples/.install
	$(call install-data,$(src_base)/LICENSE,$(install_doc_dir)/cli/LICENSE)
	$(call install-data,$(src_base)/NEWS,$(install_doc_dir)/cli/NEWS)
	$(call install-data,$(src_base)/README,$(install_doc_dir)/cli/README)

# Clean.
#
$(clean): $(out_base)/cli/.clean      \
          $(out_base)/examples/.clean \
          $(out_base)/tests/.clean

$(cleandoc): $(out_base)/doc/.cleandoc

$(call include,$(bld_root)/install.make)

$(call import,$(src_base)/cli/makefile)
$(call import,$(src_base)/doc/makefile)
$(call import,$(src_base)/tests/makefile)
$(call import,$(src_base)/examples/makefile)