Complete _includeinstall for 3-STABLE or older.

This commit is contained in:
Akinori MUSHA 2000-10-25 19:21:39 +00:00
parent bf38b4675f
commit 88b8524175
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=34233
3 changed files with 35 additions and 1 deletions

View file

@ -19,3 +19,18 @@ LIBDIR= ${LOCALBASE}/lib
INCDIR= ${LOCALBASE}/include
.include <bsd.lib.mk>
# For FreeBSD 3.x or older
.if !target(_includeinstall)
_includeinstall:
.if defined(INCS)
.for header in ${INCS}
cd ${.CURDIR} && \
${INSTALL} -C -o ${INCOWN} -g ${INCGRP} -m ${INCMODE} \
${header} ${DESTDIR}${INCDIR}
.endfor
.endif
beforeinstall: _includeinstall
.endif

View file

@ -30,7 +30,6 @@ do-build:
.endfor
do-install:
${MKDIR} ${PREFIX}/include/xml
.for f in ${MAKEFILES}
@(cd ${WRKSRC}; \
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${f} ${MAKE_ARGS} ${INSTALL_TARGET})

View file

@ -22,3 +22,23 @@ INCDIR= ${LOCALBASE}/include/xml
LIBDIR= ${LOCALBASE}/lib
.include <bsd.lib.mk>
# For FreeBSD 3.x or older
.if !target(_includeinstall)
_includeinstall:
.if defined(INCS)
.for header in ${INCS}
cd ${.CURDIR} && \
${INSTALL} -C -o ${INCOWN} -g ${INCGRP} -m ${INCMODE} \
${header} ${DESTDIR}${INCDIR}
.endfor
.endif
beforeinstall: _includeinstall
.endif
_includeinstall: pre-_includeinstall
pre-_includeinstall:
mkdir -p ${INCDIR}