1# $NetBSD: Makefile,v 1.5 2020/09/28 06:04:08 nia Exp $ 2 3# Top level Makefile to cross build xorg inside the NetBSD tree. 4 5.include <bsd.own.mk> 6 7SUBDIR= bin etc libexec 8 9.if ${MKUPDATE} == "no" && !defined(NOCLEANDIR) 10BUILDTARGETS+= cleandir 11.endif 12.if ${MKOBJDIRS} != "no" 13BUILDTARGETS+= obj 14.endif 15BUILDTARGETS+= do-build 16 17.ORDER: ${BUILDTARGETS} 18 19do-build: 20.for targ in dependall install 21 ${MAKEDIRTARGET} . ${targ} 22.endfor 23 24.for dir in tools lib 25do-${dir:S/\//-/g}: 26. for targ in dependall install 27 ${MAKEDIRTARGET} ${dir} ${targ} 28. endfor 29.endfor 30 31 32DISTRIBTARGETS= \ 33 bin/ctwm 34 35.include <bsd.subdir.mk> 36