From 964c4ac0fd69dff1441d51bd5207554bac512e29 Mon Sep 17 00:00:00 2001 From: Martin Natano Date: Wed, 14 Sep 2016 06:26:04 +0000 Subject: Generate pkg-config files at build time like everything else. This avoids permission problems due to the build and install stages being run by different users. ok deraadt jasper --- lib/libfuse/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/libfuse') diff --git a/lib/libfuse/Makefile b/lib/libfuse/Makefile index 090dfcf1970..c1233ef2873 100644 --- a/lib/libfuse/Makefile +++ b/lib/libfuse/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.9 2016/09/04 09:54:25 natano Exp $ +# $OpenBSD: Makefile,v 1.10 2016/09/14 06:26:02 natano Exp $ LIB= fuse MAN= fuse_main.3 @@ -29,10 +29,11 @@ includes: eval "$$j"; \ done +all: ${PC_FILES} ${PC_FILES}: fuse_private.h /bin/sh ${.CURDIR}/generate_pkgconfig.sh -c ${.CURDIR} -o ${.OBJDIR} -beforeinstall: ${PC_FILES} +beforeinstall: ${INSTALL} ${INSTALL_COPY} -o root -g ${SHAREGRP} \ -m ${SHAREMODE} ${.OBJDIR}/${PC_FILES} ${DESTDIR}/usr/lib/pkgconfig/ -- cgit v1.2.3