summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-10-25 19:21:39 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-10-25 19:21:39 +0000
commit88b8524175284cfb36c3bcc6f412390c08c5231b (patch)
treeac644681e72b7d2cecf075d1235635b38eb9a612 /textproc
parentAdd NOPROFILE=true to MAKE_ARGS so as not to build a profiled library. (diff)
Complete _includeinstall for 3-STABLE or older.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/expat/Makefile1
-rw-r--r--textproc/expat/files/Makefile.lib20
2 files changed, 20 insertions, 1 deletions
diff --git a/textproc/expat/Makefile b/textproc/expat/Makefile
index 12d106740b87..9a9b3a207912 100644
--- a/textproc/expat/Makefile
+++ b/textproc/expat/Makefile
@@ -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})
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}