aboutsummaryrefslogtreecommitdiff
path: root/examples/m4/libhello/makefile
blob: 71e8a63ba4b356e563e9108c7da9b0dd7017096e (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
# file      : examples/cxx/hello/libhello/makefile
# author    : Boris Kolpackov <boris@codesynthesis.com>
# copyright : Copyright (c) 2004-2011 Code Synthesis Tools CC
# license   : GNU GPL v2; see accompanying LICENSE file

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

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

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

$(default): $(out_base)/hello/hello.l $(out_base)/test/driver

$(install): $(out_base)/hello/.install

$(clean): $(out_base)/hello/.clean $(out_base)/test/.clean

$(test): $(out_base)/test/.test


# Aliases.
#
ifdef %interactive%

.PHONY: install test clean

install: $(install)
clean: $(clean)
test: $(test)

endif

# Import build rules.
#
$(call import,$(src_base)/hello/makefile)
$(call import,$(src_base)/test/makefile)