summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2004-06-29 16:29:33 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2004-06-29 16:29:33 +0000
commit41df9c7a5e2ca2f4a2979f4c173d18d3528fa6d2 (patch)
tree3525ad5ff2a4b0f446abc3eff436518cbaab8764 /gnu
parent3cc926cd9087ee3d0e6dbcabe69ebfbba72029a7 (diff)
Install correct milter includes
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.sbin/sendmail/libmilter/Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/gnu/usr.sbin/sendmail/libmilter/Makefile b/gnu/usr.sbin/sendmail/libmilter/Makefile
index ac7a00ead02..efc0af5cc4b 100644
--- a/gnu/usr.sbin/sendmail/libmilter/Makefile
+++ b/gnu/usr.sbin/sendmail/libmilter/Makefile
@@ -1,6 +1,7 @@
-# $OpenBSD: Makefile,v 1.6 2004/06/29 04:07:49 millert Exp $
+# $OpenBSD: Makefile,v 1.7 2004/06/29 16:29:32 millert Exp $
LIB= milter
+HDRS= mfapi.h milter.h mfdef.h
SRCS= main.c engine.c listener.c handler.c comm.c smfi.c signal.c \
sm_gethost.c errstring.c strl.c
CPPFLAGS+= -D_FFR_MILTER_ROOT_UNSAFE -pthread -Dsm_snprintf=snprintf
@@ -10,8 +11,13 @@ CPPFLAGS+= -D_FFR_MILTER_ROOT_UNSAFE -pthread -Dsm_snprintf=snprintf
NOPIC=1
includes:
- cmp -s ${.CURDIR}/libmilter.h ${DESTDIR}/usr/include/libmilter.h || \
- ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
- ${.CURDIR}/libmilter.h ${DESTDIR}/usr/include
+ @test -d ${DESTDIR}/usr/include/libmilter || mkdir -p ${DESTDIR}/usr/include/libmilter
+ @cd ${.CURDIR}/../include/libmilter; for i in $(HDRS); do \
+ j="cmp -s $$i ${DESTDIR}/usr/include/libmilter/$$i || \
+ ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 $$i \
+ ${DESTDIR}/usr/include/libmilter"; \
+ echo $$j; \
+ eval "$$j"; \
+ done
.include <bsd.lib.mk>