NetBSD/x11/Makefile
rtr e1bbf3c9e0 + pre-build and install libexpat before lib/*
+ link libfontconfig w/ libexpat.

Should resolve pr#24527.
2004-02-23 05:47:47 +00:00

69 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.10 2004/02/23 05:47:47 rtr 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-X11 do-lib-ICE do-lib-Xau
BUILDTARGETS+= do-lib-SM do-lib-Xext
BUILDTARGETS+= do-lib-Xt do-lib-Xpm do-lib-Xrender do-lib-GL
BUILDTARGETS+= do-lib-Xmu do-lib-dps do-lib-expat
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}
@(cd ${.CURDIR} && ${MAKE} ${tgt})
.endfor
@echo "X11 build started at: ${START_TIME}"
@printf "X11 build finished at: " && date
do-build:
.for targ in dependall install
(cd ${.CURDIR} && ${MAKE} ${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
(cd ${.CURDIR}/${dir} && ${MAKE} ${targ})
. endfor
.endfor
afterinstall: .PHONY
.if ${MKMAN} != "no"
(cd ${NETBSDSRCDIR}/share/man && ${MAKE} WHATISDBDIR=${X11MANDIR} makedb)
.endif
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>