1 # $NetBSD: Makefile,v 1.12 2004/05/16 10:25:14 lukem Exp $
5 SUBDIR
= tools
include lib bin share Xserver
7 .if
${MKUPDATE} == "no" && !defined
(NOCLEANDIR
)
8 BUILDTARGETS
+= cleandir
10 .if
${MKOBJDIRS} != "no"
13 .if
!defined
(NOINCLUDES
)
14 BUILDTARGETS
+= includes
16 BUILDTARGETS
+= do-tools
18 BUILDTARGETS
+= do-build
20 .ORDER
: ${BUILDTARGETS}
24 build
: check_X11SRCDIR
25 @echo
"X11 build started at: ${START_TIME}"
26 .for tgt in
${BUILDTARGETS}
27 ${MAKEDIRTARGET} .
${tgt}
29 @echo
"X11 build started at: ${START_TIME}"
30 @printf
"X11 build finished at: " && date
33 .for targ in dependall
install
34 ${MAKEDIRTARGET} .
${targ}
37 .for
dir in tools lib
/X11 lib
/ICE lib
/Xau lib
/SM lib
/Xext lib
/Xt lib
/Xpm \
38 lib
/Xrender lib
/GL lib
/Xmu lib
/dps lib
/expat lib
40 . for targ in dependall
install
41 ${MAKEDIRTARGET} ${dir} ${targ}
47 ${MAKEDIRTARGET} ${NETBSDSRCDIR}/share
/man makedb \
48 WHATISDBDIR
=${X11MANDIR}
52 DISTRIBTARGETS
= Xserver
/Xext
/ext \
53 bin
/lbxproxy bin
/proxymngr bin
/rstart bin
/twm \
54 bin
/xdm
/config bin
/xfs bin
/xinit bin
/xsm \
57 distribution
: check_X11SRCDIR
58 .for tgt in
${DISTRIBTARGETS}
59 ${MAKEDIRTARGET} ${tgt} configinstall
63 check_X11SRCDIR
: .PHONY .NOTMAIN
64 .if
!defined
(X11SRCDIR
)
66 @echo
"ERROR: setenv X11SRCDIR before doing that!"
68 .elif
!exists
(${X11SRCDIR.xc
})
70 @echo
"ERROR: X11SRCDIR.xc \`${X11SRCDIR.xc}' does not exist"
76 .
include <bsd.subdir.mk
>