Date: 24 Jan 2001 19:21:01 +0100 From: Cyrille Lefevre <clefevre@citeweb.net> To: Peter Pentchev <roam@orbitel.bg> Cc: freebsd-arch@FreeBSD.ORG Subject: Re: patch for bsd.lib.mk to create include and lib dirs Message-ID: <zoggyfoy.fsf@gits.dyndns.org> In-Reply-To: Peter Pentchev's message of "Wed, 24 Jan 2001 11:39:02 %2B0200" References: <20010124113902.B332@ringworld.oblivion.bg>
next in thread | previous in thread | raw e-mail | index | archive | help
Peter Pentchev <roam@orbitel.bg> writes:
[snip]
Index: src/share/mk/bsd.lib.mk
===================================================================
RCS file: /home/ncvs/src/share/mk/bsd.lib.mk,v
retrieving revision 1.93
diff -u -r1.93 bsd.lib.mk
--- src/share/mk/bsd.lib.mk 2000/10/02 08:48:49 1.93
+++ src/share/mk/bsd.lib.mk 2001/01/24 09:30:01
@@ -260,10 +260,16 @@
.if !target(install)
.if !target(beforeinstall)
beforeinstall: _includeinstall
+.if defined(CREATEDESTDIRS)
+ ${MKDIR} ${DESTDIR}${LIBDIR}
.endif
+.endif
_includeinstall:
.if defined(INCS)
+.if defined(CREATEDESTDIRS)
+ ${MKDIR} ${DESTDIR}${INCDIR}
+.endif
.for header in ${INCS}
cd ${.CURDIR} && \
${INSTALL} -C -o ${INCOWN} -g ${INCGRP} -m ${INCMODE} \
Index: src/share/mk/sys.mk
===================================================================
RCS file: /home/ncvs/src/share/mk/sys.mk,v
retrieving revision 1.46
diff -u -r1.46 sys.mk
--- src/share/mk/sys.mk 2000/04/21 23:51:58 1.46
+++ src/share/mk/sys.mk 2001/01/24 09:30:01
@@ -57,6 +57,8 @@
.endif
.endif
+MKDIR ?= mkdir -p
+
.if defined(%POSIX)
FC ?= fort77
FFLAGS ?= -O 1
would not be better to use install -d instead of mkdir -p which permit,
if needed alsewhere, to also set ownership ?
Cyrille.
--
home: mailto:clefevre@citeweb.net work: mailto:Cyrille.Lefevre@edf.fr
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?zoggyfoy.fsf>
