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/libexpat | |
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/libexpat')
-rw-r--r-- | lib/libexpat/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libexpat/Makefile b/lib/libexpat/Makefile index b4ae20c9f02..2e52b9ededa 100644 --- a/lib/libexpat/Makefile +++ b/lib/libexpat/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.10 2016/09/04 09:54:25 natano Exp $ +# $OpenBSD: Makefile,v 1.11 2016/09/14 06:26:02 natano Exp $ .PATH: ${.CURDIR}/lib @@ -17,10 +17,11 @@ includes: ${INSTALL} ${INSTALL_COPY} -m 444 -o $(BINOWN) -g $(BINGRP) \ ${.CURDIR}/lib/expat_external.h ${DESTDIR}/usr/include/expat_external.h +all: ${PC_FILES} ${PC_FILES}: lib/expat.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/ |