Don't traverse subdirectories twice for normal installs.

This commit is contained in:
Bruce Evans 1997-08-21 18:40:04 +00:00
parent 41b5513403
commit cfca13bf11
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=28543

View File

@ -1,5 +1,5 @@
# From: @(#)Makefile 8.2 (Berkeley) 1/4/94 # From: @(#)Makefile 8.2 (Berkeley) 1/4/94
# $Id: Makefile,v 1.61 1997/08/18 06:28:47 peter Exp $ # $Id: Makefile,v 1.62 1997/08/21 09:29:46 jmg Exp $
# #
# Doing a make install builds /usr/include # Doing a make install builds /usr/include
# #
@ -66,7 +66,10 @@ all:
beforeinstall: installhdrs ${SHARED} beforeinstall: installhdrs ${SHARED}
.if make(installhdrs)
installhdrs: _SUBDIR installhdrs: _SUBDIR
.endif
installhdrs:
cd ${.CURDIR}; \ cd ${.CURDIR}; \
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \ ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
${FILES} ${DESTDIR}/usr/include ${FILES} ${DESTDIR}/usr/include