1 # $NetBSD: Makefile,v 1.8 2010/11/12 17:05:48 tsutsui Exp $
3 # Top level Makefile to cross build xorg inside the NetBSD tree.
7 SUBDIR
= tools .WAIT
include .WAIT lib .WAIT bin share server etc
9 .if
${MKUPDATE} == "no" && !defined
(NOCLEANDIR
)
10 BUILDTARGETS
+= cleandir
12 .if
${MKOBJDIRS} != "no"
15 .if
!defined
(NOINCLUDES
)
16 BUILDTARGETS
+= includes
18 BUILDTARGETS
+= do-tools
20 BUILDTARGETS
+= do-build
22 .ORDER
: ${BUILDTARGETS}
26 build
: check_X11SRCDIR
27 @echo
"X11 build started at: ${START_TIME}"
28 .for tgt in
${BUILDTARGETS}
29 ${MAKEDIRTARGET} .
${tgt}
31 @echo
"X11 build started at: ${START_TIME}"
32 @printf
"X11 build finished at: " && date
35 .for targ in dependall
install
36 ${MAKEDIRTARGET} .
${targ}
41 . for targ in dependall
install
42 ${MAKEDIRTARGET} ${dir} ${targ}
49 ${MAKEDIRTARGET} ${NETBSDSRCDIR}/share
/man makedb \
50 WHATISDBDIR
=${X11MANDIR}
52 .
endif # !defined(__MINIX)
64 lib
/fontconfig
/etc
/conf.avail \
65 lib
/fontconfig
/etc
/conf.d
67 distribution
: check_X11SRCDIR
68 .for tgt in
${DISTRIBTARGETS}
69 ${MAKEDIRTARGET} ${tgt} configinstall
73 check_X11SRCDIR
: .PHONY .NOTMAIN
74 .if
!defined
(X11SRCDIR
)
76 @echo
"ERROR: setenv X11SRCDIR before doing that!"
78 .elif
!exists
(${X11SRCDIR.X11
})
80 @echo
"ERROR: X11SRCDIR.X11 \`${X11SRCDIR.X11}' does not exist"
86 .
include <bsd.subdir.mk
>