summaryrefslogtreecommitdiff
path: root/makefile
blob: c50b41fd5f54241fddac450df7ecc7986b34df83 (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
# file      : makefile
# author    : Boris Kolpackov <boris@codesynthesis.com>
# copyright : Copyright (c) 2009 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


.PHONY: $(default) $(test) $(install) $(clean)

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

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

# Install.
#
$(install): $(out_base)/cli/.install           \
            $(out_base)/documentation/.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

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

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