summaryrefslogtreecommitdiff
path: root/bootstrap/bmake/mk/bsd.subdir.mk
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap/bmake/mk/bsd.subdir.mk')
-rw-r--r--bootstrap/bmake/mk/bsd.subdir.mk62
1 files changed, 0 insertions, 62 deletions
diff --git a/bootstrap/bmake/mk/bsd.subdir.mk b/bootstrap/bmake/mk/bsd.subdir.mk
deleted file mode 100644
index 701df8e8c17..00000000000
--- a/bootstrap/bmake/mk/bsd.subdir.mk
+++ /dev/null
@@ -1,62 +0,0 @@
-# $NetBSD: bsd.subdir.mk,v 1.1.1.1 2004/03/11 13:04:17 grant Exp $
-# @(#)bsd.subdir.mk 8.1 (Berkeley) 6/8/93
-
-.if !target(__initialized__)
-__initialized__:
-.if exists(${.CURDIR}/../Makefile.inc)
-.include "${.CURDIR}/../Makefile.inc"
-.endif
-.include <bsd.own.mk>
-.MAIN: all
-.endif
-
-.for dir in ${SUBDIR}
-.if exists(${dir}.${MACHINE})
-__REALSUBDIR+=${dir}.${MACHINE}
-.else
-__REALSUBDIR+=${dir}
-.endif
-.endfor
-
-.if defined(DESTDIR) && exists(${DESTDIR}/usr/share/mk/sys.mk)
-_M=-m ${DESTDIR}/usr/share/mk
-.else
-_M=
-.endif
-
-__recurse: .USE
- @targ=${.TARGET:C/-.*$//};dir=${.TARGET:C/^[^-]*-//}; \
- case "$$dir" in /*) \
- echo "$$targ ===> $$dir"; \
- cd "$$dir"; \
- ${MAKE} ${_M} "_THISDIR_=$$dir/" $$targ; \
- ;; \
- *) \
- echo "$$targ ===> ${_THISDIR_}$$dir"; \
- cd "${.CURDIR}/$$dir"; \
- ${MAKE} ${_M} "_THISDIR_=${_THISDIR_}$$dir/" $$targ; \
- ;; \
- esac
-
-# for obscure reasons, we can't do a simple .if ${dir} == ".WAIT"
-# but have to assign to __TARGDIR first.
-.for targ in ${TARGETS}
-.for dir in ${__REALSUBDIR}
-__TARGDIR := ${dir}
-.if ${__TARGDIR} == ".WAIT"
-SUBDIR_${targ} += .WAIT
-.else
-.PHONY: ${targ}-${dir}
-${targ}-${dir}: .MAKE __recurse
-SUBDIR_${targ} += ${targ}-${dir}
-.endif
-.endfor
-.if defined(__REALSUBDIR)
-.PHONY: subdir-${targ}
-subdir-${targ}: ${SUBDIR_${targ}}
-${targ}: subdir-${targ}
-.endif
-.endfor
-
-# Make sure all of the standard targets are defined, even if they do nothing.
-${TARGETS}: