aboutsummaryrefslogtreecommitdiff
path: root/makefile
blob: cfe34afc2aae8bc29cf130f0591bea5bc1cfe7a6 (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
49
50
51
52
53
54
55
# file      : makefile
# copyright : Copyright (c) 2009-2017 Code Synthesis Tools CC
# license   : GNU GPL v2 + exceptions; see accompanying LICENSE file

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

default  := $(out_base)/

.PHONY: $(default) test install dist dist-win clean

# Build.
#
$(default): $(out_base)/xsde/xsde/

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

# Install.
#
install: $(out_base)/xsde/.install

# Dist.
#
dist: $(out_base)/xsde/.dist
dist-win: $(out_base)/xsde/.dist-win

# Clean.
#
clean: $(out_base)/libxsd-frontend/.clean      \
       $(out_base)/xsde/.clean

ifneq ($(EXTERNAL_LIBCUTL),y)
src_root := $(src_base)/libcutl
scf_root := $(src_root)/build
out_root := $(src_root)
$(call import,$(src_base)/libcutl/makefile)

clean: $(out_base)/libcutl/.clean
endif

src_root := $(src_base)/libxsd-frontend
scf_root := $(src_root)/build
out_root := $(src_root)
$(call import,$(src_base)/libxsd-frontend/makefile)

src_root := $(src_base)/xsde
scf_root := $(src_root)/build
out_root := $(src_root)

ifneq ($(filter $(MAKECMDGOALS),clean test install dist dist-win),)
$(call import,$(src_base)/xsde/makefile)
else
$(call import,$(src_base)/xsde/xsde/makefile)
endif