-
Notifications
You must be signed in to change notification settings - Fork 9
/
main.mk
52 lines (41 loc) · 1.43 KB
/
main.mk
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
# Copyright (c) 2014-2019 by Aleksey Cheusov
#
# See LICENSE file in the distribution.
##################################################
.include "help.mk"
.include "use.mk"
##################################################
SUBPRJ_DFLT = builtins examples/helpers mk scripts features doc
SUBPRJ = scripts:examples scripts:presentation ${SUBPRJ_DFLT} \
scripts:builtins scripts:examples/helpers scripts:mk \
builtins:mk scripts:features scripts:doc
.include "tests.mk"
.for t in ${tests}
SUBPRJ += tests/${t}:tests
.endfor
.include "examples.mk"
.for t in ${examples}
SUBPRJ += examples/${t}:examples
.endfor
NODEPS += install-examples/helpers:install
NODEPS += test-examples/multilibs:test test-examples/multilibs:test-examples
##################################################
# The following is necessary for target "test-examples"
NOEXPORT_VARNAMES = MKC_CACHEDIR SRCTOP OBJDIR
#
PATH := ${.CURDIR}/examples/helpers:${.CURDIR}/scripts:${PATH}
.export INSTALL PATH
##################################################
.PHONY: pdf
pdf: all-presentation
pdf:
@set -e; cd presentation; \
${MAKE} clean-garbage; \
rm -f myprojects.* _mkc_*
##################################################
cleandir: cleandir-tests cleandir-presentation cleandir-examples
clean: clean-tests clean-presentation clean-examples
test: test-tests test-examples
##################################################
.include "Makefile.inc"
.include <mkc.mk>