diff options
author | Martin Natano <natano@cvs.openbsd.org> | 2016-09-14 06:26:04 +0000 |
---|---|---|
committer | Martin Natano <natano@cvs.openbsd.org> | 2016-09-14 06:26:04 +0000 |
commit | 964c4ac0fd69dff1441d51bd5207554bac512e29 (patch) | |
tree | 72697eafafd0fc8006839556d5875d04b75150ce /lib/libfuse | |
parent | ceb848007a2348912df73aefb9f2bb85a7c83592 (diff) |
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
Diffstat (limited to 'lib/libfuse')
-rw-r--r-- | lib/libfuse/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
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/ |