-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile.inc
63 lines (55 loc) · 1.92 KB
/
Makefile.inc
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
56
57
58
59
60
61
62
63
VERSION = 0.40.0
BIRTHDATE = 2009-02-21
MKFILESDIR = ${PREFIX}/share/mk-configure/mk # = overrides newsys.mk.in
DOCDIR ?= ${PREFIX}/share/doc/mk-configure
BUILTINSDIR = ${PREFIX}/share/mk-configure/builtins # = overrides newsys.mk.in
FEATURESDIR = ${PREFIX}/share/mk-configure/features # = overrides newsys.mk.in
INTEXTS_REPLS += version ${VERSION}
INTEXTS_REPLS += AWK ${USE_AWK:U}
INTEXTS_REPLS += SH ${USE_SH:U}
INTEXTS_REPLS += BMAKE ${BMAKE}
INTEXTS_REPLS += mkfilesdir ${MKFILESDIR}
INTEXTS_REPLS += featuresdir ${FEATURESDIR}
INTEXTS_REPLS += syscustomdir ${BUILTINSDIR}
INTEXTS_REPLS += mkc_libexecdir ${LIBEXECDIR}/mk-configure
.if !make(clean) && !make(cleandir)
. if empty(USE_AWK) || ${USE_AWK} == "auto"
USE_AWK=
. if exists(/usr/xpg4/bin/awk)
# Solaris' /usr/bin/awk is completely broken,
# /usr/xpg4/bin/awk sucks too but sucks less.
USE_AWK = /usr/xpg4/bin/awk
. endif
. if ${USE_AWK:U} == ""
USE_AWK != ${.CURDIR}/scripts/mkc_which.in gawk 2>/dev/null || true
. endif
. if ${USE_AWK:U} == ""
USE_AWK != ${.CURDIR}/scripts/mkc_which.in nawk 2>/dev/null || true
. endif
. if ${USE_AWK:U} == ""
USE_AWK != ${.CURDIR}/scripts/mkc_which.in awk 2>/dev/null || true
. endif
. if ${USE_AWK:U} == ""
. error "Cannot find AWK"
. endif
. endif # empty(USE_AWK) ...
. export USE_AWK
. if empty(USE_SH) || ${USE_SH} == "auto"
USE_SH=
. if exists(/usr/xpg4/bin/sh)
# Solaris-10's /bin/sh is completely broken,
# /usr/xpg4/bin/sh sucks too but sucks less.
USE_SH = /usr/xpg4/bin/sh
. else
USE_SH = /bin/sh
. endif
. endif # empty(USE_SH)...
. export USE_SH
.endif # !make(clean) ...
BMAKE ?= bmake
PS2PDF ?= ps2pdf
DOT ?= dot
DVIPS ?= dvips
LATEX ?= latex
generated_scripts = mkc_check_prog mkc_which mkc_check_custom
DIST_TARGETS = pdf clean-mk clean-scripts mkc_clean