-
Notifications
You must be signed in to change notification settings - Fork 24
/
Makefile
76 lines (61 loc) · 1.6 KB
/
Makefile
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
64
65
66
67
68
69
70
71
72
73
74
75
76
# $NetBSD: Makefile,v 1.13 2004/08/04 09:38:56 lukem Exp $
.include <bsd.own.mk>
SUBDIR= tools include lib bin share Xserver
.if ${MKUPDATE} == "no" && !defined(NOCLEANDIR)
BUILDTARGETS+= cleandir
.endif
.if ${MKOBJDIRS} != "no"
BUILDTARGETS+= obj
.endif
.if !defined(NOINCLUDES)
BUILDTARGETS+= includes
.endif
BUILDTARGETS+= do-tools
BUILDTARGETS+= do-lib
BUILDTARGETS+= do-build
.ORDER: ${BUILDTARGETS}
START_TIME!= date
build: check_X11SRCDIR
@echo "X11 build started at: ${START_TIME}"
.for tgt in ${BUILDTARGETS}
${MAKEDIRTARGET} . ${tgt}
.endfor
@echo "X11 build started at: ${START_TIME}"
@printf "X11 build finished at: " && date
do-build:
.for targ in dependall install
${MAKEDIRTARGET} . ${targ}
.endfor
.for dir in tools lib/X11 lib/ICE lib/Xau lib/SM lib/Xext lib/Xt lib/Xpm \
lib/Xrender lib/GL lib/Xmu lib/dps lib/expat lib
do-${dir:S/\//-/g}:
. for targ in dependall install
${MAKEDIRTARGET} ${dir} ${targ}
. endfor
.endfor
afterinstall: .PHONY
.if ${MKMAN} != "no"
${MAKEDIRTARGET} ${NETBSDSRCDIR}/share/man makedb \
WHATISDBDIR=${X11MANDIR}
.endif
DISTRIBTARGETS= Xserver/Xext/ext \
bin/lbxproxy bin/proxymngr bin/rstart bin/twm \
bin/xdm/config bin/xfs bin/xinit bin/xsm \
lib/fontconfig/etc
distribution: check_X11SRCDIR
.for tgt in ${DISTRIBTARGETS}
${MAKEDIRTARGET} ${tgt} configinstall
.endfor
check_X11SRCDIR: .PHONY .NOTMAIN
.if !defined(X11SRCDIR)
@echo
@echo "ERROR: setenv X11SRCDIR before doing that!"
@false
.elif !exists(${X11SRCDIR.xc})
@echo
@echo "ERROR: X11SRCDIR.xc \`${X11SRCDIR.xc}' does not exist"
@false
.else
@true
.endif
.include <bsd.subdir.mk>