summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--share/mk/bsd.subdir.mk35
1 files changed, 33 insertions, 2 deletions
diff --git a/share/mk/bsd.subdir.mk b/share/mk/bsd.subdir.mk
index d7159fbc5f14..644e5f7e9220 100644
--- a/share/mk/bsd.subdir.mk
+++ b/share/mk/bsd.subdir.mk
@@ -1,5 +1,36 @@
# from: @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91
-# $Id$
+# $Id: bsd.subdir.mk,v 1.13 1997/02/22 13:56:14 peter Exp $
+#
+# The include file <bsd.subdir.mk> contains the default targets
+# for building subdirectories. It has the same seven targets
+# as <bsd.prog.mk>:
+# all, clean, cleandir, depend, install, lint, and tags.
+#
+# For all of the directories listed in the variable SUBDIRS, the
+# specified directory will be visited and the target made. There is
+# also a default target which allows the command "make subdir" where
+# subdir is any directory listed in the variable SUBDIRS.
+#
+#
+# +++ variables +++
+#
+# DISTRIBUTION Name of distribution. [bin]
+#
+# SUBDIR A list of subdirectories that should be built as well.
+# Each of the targets will execute the same target in the
+# subdirectories.
+#
+# +++ targets +++
+#
+# distribute:
+# This is a variant of install, which will
+# put the stuff into the right "distribution".
+#
+# afterdistribute, afterinstall, all, beforeinstall, checkdpadd,
+# clean, cleandepend, cleandir, depend, install, lint, maninstall,
+# obj, objlink, realinstall, tags
+#
+
.MAIN: all
@@ -50,6 +81,6 @@ DISTRIBUTION?= bin
afterdistribute:
.endif
.if !target(distribute)
-distribute: _SUBDIRUSE
+distribute: _SUBDIRUSE
cd ${.CURDIR} ; ${MAKE} afterdistribute DESTDIR=${DISTDIR}/${DISTRIBUTION}
.endif