No empty .Rs/.Re
[netbsd-mini2440.git] / x11 / Makefile
blob5854d285765bb01ca83307bbd3958f67d0cb40a7
1 # $NetBSD: Makefile,v 1.12 2004/05/16 10:25:14 lukem Exp $
3 .include <bsd.own.mk>
5 SUBDIR= tools include lib bin share Xserver
7 .if ${MKUPDATE} == "no" && !defined(NOCLEANDIR)
8 BUILDTARGETS+= cleandir
9 .endif
10 .if ${MKOBJDIRS} != "no"
11 BUILDTARGETS+= obj
12 .endif
13 .if !defined(NOINCLUDES)
14 BUILDTARGETS+= includes
15 .endif
16 BUILDTARGETS+= do-tools
17 BUILDTARGETS+= do-lib
18 BUILDTARGETS+= do-build
20 .ORDER: ${BUILDTARGETS}
22 START_TIME!= date
24 build: check_X11SRCDIR
25 @echo "X11 build started at: ${START_TIME}"
26 .for tgt in ${BUILDTARGETS}
27 ${MAKEDIRTARGET} . ${tgt}
28 .endfor
29 @echo "X11 build started at: ${START_TIME}"
30 @printf "X11 build finished at: " && date
32 do-build:
33 .for targ in dependall install
34 ${MAKEDIRTARGET} . ${targ}
35 .endfor
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
39 do-${dir:S/\//-/g}:
40 . for targ in dependall install
41 ${MAKEDIRTARGET} ${dir} ${targ}
42 . endfor
43 .endfor
45 afterinstall: .PHONY
46 .if ${MKMAN} != "no"
47 ${MAKEDIRTARGET} ${NETBSDSRCDIR}/share/man makedb \
48 WHATISDBDIR=${X11MANDIR}
49 .endif
52 DISTRIBTARGETS= Xserver/Xext/ext \
53 bin/lbxproxy bin/proxymngr bin/rstart bin/twm \
54 bin/xdm/config bin/xfs bin/xinit bin/xsm \
55 lib/fontconfig/etc
57 distribution: check_X11SRCDIR
58 .for tgt in ${DISTRIBTARGETS}
59 ${MAKEDIRTARGET} ${tgt} configinstall
60 .endfor
63 check_X11SRCDIR: .PHONY .NOTMAIN
64 .if !defined(X11SRCDIR)
65 @echo
66 @echo "ERROR: setenv X11SRCDIR before doing that!"
67 @false
68 .elif !exists(${X11SRCDIR.xc})
69 @echo
70 @echo "ERROR: X11SRCDIR.xc \`${X11SRCDIR.xc}' does not exist"
71 @false
72 .else
73 @true
74 .endif
76 .include <bsd.subdir.mk>