Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Add the FORCE_DOMESTIC flag to force the 'all', 'includes',



details:   https://anonhg.NetBSD.org/src/rev/eadcbd3aedc2
branches:  trunk
changeset: 472229:eadcbd3aedc2
user:      scottr <scottr%NetBSD.org@localhost>
date:      Sun Apr 25 19:13:05 1999 +0000

description:
Add the FORCE_DOMESTIC flag to force the 'all', 'includes',
and 'install' targets to descend into the domestic subtree.  This is
generally a bad idea unless one knows precisely what they're doing,
but we'll provide the rope anyway (with the appropriate warnings).

Document both EXPORTABLE_SYSTEM and FORCE_DOMESTIC at the top of the file.

diffstat:

 Makefile |  25 +++++++++++++++++++++----
 1 files changed, 21 insertions(+), 4 deletions(-)

diffs (60 lines):

diff -r 1366bbfe7337 -r eadcbd3aedc2 Makefile
--- a/Makefile  Sun Apr 25 19:08:34 1999 +0000
+++ b/Makefile  Sun Apr 25 19:13:05 1999 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.95 1999/04/01 02:49:12 cjs Exp $
+#      $NetBSD: Makefile,v 1.96 1999/04/25 19:13:05 scottr Exp $
 
 # This is the top-level makefile for building NetBSD. For an outline of
 # how to build a snapshot or release, as well as other release engineering
@@ -25,6 +25,15 @@
 #   DESTDIR is the target directory for installation of the compiled
 #      software. It defaults to /. Note that programs are built against
 #      libraries installed in DESTDIR.
+#   EXPORTABLE_SYSTEM, when set, ensures that non-exportable crypto code
+#      is not compiled or installed. EXPORTABLE_SYSTEM is ignored if
+#      the `domestic' subtree does not exist.
+#   FORCE_DOMESTIC, when set, forces a descent into the domestic tree
+#      when handling the `all', `includes', and `install' targets. This
+#      flag is incompatible with the `build' target. It's generally a
+#      bad idea to use FORCE_DOMESTIC unless the ramifications are well
+#      understood, and should never be enabled by default. FORCE_DOMESTIC
+#      is ignored if the `domestic' subtree does not exist.
 #
 # Targets:
 #   build: builds a full release of netbsd in DESTDIR.
@@ -57,8 +66,9 @@
 # Descend into the domestic tree if it exists AND
 #  1) the target is clean, cleandir, or obj, OR
 #  2) the the target is install or includes AND
-#    NOT compiling only "exportable" code AND
-#    doing it as part of installing a distribution.
+#     NOT compiling only "exportable" code AND
+#     doing it as part of installing a distribution, OR
+#  3) we Really Know what we're doing.  (Really!)
 #
 # NOTE:  due to the use of the make(foo) construct here, using the
 # clean, cleandir, and obj targets on the command line in conjunction
@@ -67,7 +77,8 @@
 .if exists(domestic) && \
     (make(clean) || make(cleandir) || make(obj) || \
     ((make(includes) || make(install)) && \
-    !defined(EXPORTABLE_SYSTEM) && defined(_DISTRIB)))
+       !defined(EXPORTABLE_SYSTEM) && defined(_DISTRIB)) || \
+    defined(FORCE_DOMESTIC))
 SUBDIR+= domestic
 .endif
 
@@ -104,6 +115,12 @@
 # as the build will automatically remove/replace the non-pkg entries there.
 
 build: beforeinstall
+.if defined(FORCE_DOMESTIC)
+       @echo '*** CAPUTE!'
+       @echo '    The FORCE_DOMESTIC flag is not compatible with "make build".'
+       @echo '    Please correct the problem and try again.'
+       @false
+.endif
 .if ${MKSHARE} != "no"
        (cd ${.CURDIR}/share/mk && ${MAKE} install)
        (cd ${.CURDIR}/share/tmac && ${MAKE} && ${MAKE} install)



Home | Main Index | Thread Index | Old Index