# $NetBSD: Makefile,v 1.5 2020/09/28 06:04:08 nia Exp $ # Top level Makefile to cross build xorg inside the NetBSD tree. .include SUBDIR= bin etc libexec .if ${MKUPDATE} == "no" && !defined(NOCLEANDIR) BUILDTARGETS+= cleandir .endif .if ${MKOBJDIRS} != "no" BUILDTARGETS+= obj .endif BUILDTARGETS+= do-build .ORDER: ${BUILDTARGETS} do-build: .for targ in dependall install ${MAKEDIRTARGET} . ${targ} .endfor .for dir in tools lib do-${dir:S/\//-/g}: . for targ in dependall install ${MAKEDIRTARGET} ${dir} ${targ} . endfor .endfor DISTRIBTARGETS= \ bin/ctwm .include