From 63e446254e558b5bbe9872dd09c819904f6e4f7b Mon Sep 17 00:00:00 2001 From: niklas <> Date: Tue, 2 Mar 1999 21:47:33 +0000 Subject: [PATCH] Provide a method to do prerequisites needed before installation of includes can happen. Do these before and not run via ${SUDO}. --- src/include/Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/include/Makefile b/src/include/Makefile index 7d2aa186..67a6e3e9 100644 --- a/src/include/Makefile +++ b/src/include/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.60 1999/02/26 00:54:00 deraadt Exp $ +# $OpenBSD: Makefile,v 1.61 1999/03/02 21:47:33 niklas Exp $ # $NetBSD: Makefile,v 1.59 1996/05/15 21:36:43 jtc Exp $ # @(#)Makefile 5.45.1.1 (Berkeley) 5/6/91 @@ -33,16 +33,22 @@ DIRS= arpa protocols rpc rpcsvc LDIRS= dev net netinet netinet6 netccitt netiso netns netipx nfs sys ufs vm ddb \ scsi netatalk isofs xfs +# Directories with an includes target RDIRS= ../lib/libc_r ../lib/libcom_err ../lib/libcompat ../lib/libcurses \ ../lib/libform ../lib/libmenu ../lib/libocurses ../lib/libossaudio \ ../lib/libpanel ../lib/librpcsvc ../lib/libskey ../lib/libedit \ ../lib/libpcap ../lib/libutil ../lib/libwrap ../lib/libz \ ../sys/arch/${MACHINE} +# Directories with an includes target that use Makefile.bsd-wrapper WDIRS= ../lib/libssl ../gnu/lib/libg++/libg++ ../gnu/lib/libg++/libio \ ../gnu/lib/libg++/librx ../gnu/lib/libg++/libstdc++ \ ../gnu/usr.bin/gcc ../gnu/lib/libgmp +# Places using Makefile.bsd-wrapper that needs a prerequisite target met +# before includes +PWDIRS= ../lib/libssl + NOOBJ= noobj # Change SYS_INCLUDE in bsd.own.mk to "symlinks" if you don't want copies @@ -52,6 +58,12 @@ SYS_INCLUDE?= copies RDIRS+= ../kerberosIV/include ../kerberosIV/kadm ../kerberosIV/krb .endif +prereq: + @-for i in ${PWDIRS}; do \ + echo preparing in ${.CURDIR}/$$i; \ + (cd ${.CURDIR}/$$i; ${MAKE} -f Makefile.bsd-wrapper prereq) \ + done + includes: @echo installing ${FILES} @-for i in ${FILES}; do \