diff options
Diffstat (limited to 'textproc/expat/files/Makefile.lib')
| -rw-r--r-- | textproc/expat/files/Makefile.lib | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/textproc/expat/files/Makefile.lib b/textproc/expat/files/Makefile.lib index b3a0f177cd35..c4f283a70630 100644 --- a/textproc/expat/files/Makefile.lib +++ b/textproc/expat/files/Makefile.lib @@ -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} |
