Sync usage with man page.
[netbsd-mini2440.git] / compat / dirshack / Makefile
blob43529cea4d22ad6eda8fa1a42824b30b22c09a54
1 # $NetBSD$
3 # hacky method to get compat multilib base objdirs created before
4 # make tries to go create the subdirs used for builds.
6 # the problem is that make handles objdir creation for subdirs before it
7 # handles this current directory, so when make cd's into $arch/$libtype
8 # and from there into the ../../lib dirs, it ends up setting the forced
9 # MAKEOBJDIRPREFIX to something based upon ${.CURDIR}, since the objdir
10 # doesn't exist yet.
12 # our solution is simple - from this Makefile we traverse the same list
13 # of $arch/$libtype's with "BOOTSTRAP_SUBDIR=". then the compat/Makefile
14 # handles these subdirs as normal, with the base objdir created.
16 .include <bsd.own.mk>
18 .if ${MKCOMPAT} != "no"
19 .if make(obj)
21 .include "../archdirs.mk"
23 MAKEDIRTARGETENV= BOOTSTRAP_SUBDIRS=
25 SUBDIR= ${ARCHDIR_SUBDIR:C/^/..\//}
27 .endif # make(obj)
28 .endif # MKCOMPAT != no
30 .include <bsd.subdir.mk>