summaryrefslogtreecommitdiff
path: root/lib/libexpat/Makefile
diff options
context:
space:
mode:
authorMartin Natano <natano@cvs.openbsd.org>2016-09-04 09:54:26 +0000
committerMartin Natano <natano@cvs.openbsd.org>2016-09-04 09:54:26 +0000
commita2a988796cd05f1611b1f99ff99a48291c9fe5d1 (patch)
tree7c51ffdb1017ab0014797bb2c40de072fd761e11 /lib/libexpat/Makefile
parent7db91a8f381fb9c07940741a6df3b26a3e94aa70 (diff)
only regen pkg-config files when required; ok jasper
Diffstat (limited to 'lib/libexpat/Makefile')
-rw-r--r--lib/libexpat/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libexpat/Makefile b/lib/libexpat/Makefile
index 352e3f0fca7..b4ae20c9f02 100644
--- a/lib/libexpat/Makefile
+++ b/lib/libexpat/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.9 2012/08/02 13:38:38 okan Exp $
+# $OpenBSD: Makefile,v 1.10 2016/09/04 09:54:25 natano Exp $
.PATH: ${.CURDIR}/lib
@@ -17,8 +17,10 @@ includes:
${INSTALL} ${INSTALL_COPY} -m 444 -o $(BINOWN) -g $(BINGRP) \
${.CURDIR}/lib/expat_external.h ${DESTDIR}/usr/include/expat_external.h
-beforeinstall:
+${PC_FILES}: lib/expat.h
/bin/sh ${.CURDIR}/generate_pkgconfig.sh -c ${.CURDIR} -o ${.OBJDIR}
+
+beforeinstall: ${PC_FILES}
${INSTALL} ${INSTALL_COPY} -o root -g ${SHAREGRP} \
-m ${SHAREMODE} ${.OBJDIR}/${PC_FILES} ${DESTDIR}/usr/lib/pkgconfig/