2003-09-24 05:56:57 +04:00
|
|
|
# $NetBSD: Makefile,v 1.3 2003/09/24 01:56:57 lukem Exp $
|
2003-09-11 22:37:05 +04:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
|
2003-09-24 05:56:57 +04:00
|
|
|
SUBDIR= tools include lib bin share Xserver
|
2003-09-11 22:37:05 +04:00
|
|
|
|
|
|
|
|
|
|
|
.if ${MKUPDATE} == "no" && !defined(NOCLEANDIR)
|
|
|
|
BUILDTARGETS+= cleandir
|
|
|
|
.endif
|
|
|
|
.if ${MKOBJDIRS} != "no"
|
|
|
|
BUILDTARGETS+= obj
|
|
|
|
.endif
|
|
|
|
BUILDTARGETS+= includes 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
|
|
|
|
BUILDTARGETS+= do-lib
|
|
|
|
BUILDTARGETS+= do-build
|
|
|
|
|
|
|
|
.ORDER: ${BUILDTARGETS}
|
|
|
|
|
|
|
|
|
|
|
|
START_TIME!= date
|
|
|
|
|
|
|
|
build:
|
|
|
|
@echo "Build started at: ${START_TIME}"
|
|
|
|
.for tgt in ${BUILDTARGETS}
|
|
|
|
@(cd ${.CURDIR} && ${MAKE} ${tgt})
|
|
|
|
.endfor
|
|
|
|
@echo "Build started at: ${START_TIME}"
|
|
|
|
@printf "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
|
|
|
|
do-${dir:S/\//-/g}:
|
|
|
|
.for targ in dependall install
|
|
|
|
(cd ${.CURDIR}/${dir} && ${MAKE} ${targ})
|
|
|
|
.endfor
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
|
|
|
|
.include <bsd.subdir.mk>
|