summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@herrb.eu>2024-05-05 22:44:57 +0200
committerMatthieu Herrb <matthieu@herrb.eu>2024-05-05 22:44:57 +0200
commitae13f5ead796d4d81b07da6a4a628735a6f7ee87 (patch)
tree307fcff1e05e3d85f8e3ecc22f106fc569b97b1a /mk
parent43056800dd6274d854df718e8d86730e8726a8ac (diff)
install headerobsd
Diffstat (limited to 'mk')
-rw-r--r--mk/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/mk/Makefile b/mk/Makefile
index 6278bf8..2f5488c 100644
--- a/mk/Makefile
+++ b/mk/Makefile
@@ -30,6 +30,14 @@ CFLAGS += -std=c99
EXTRA_PKGCONFIG_SUBST= "-e s/@PCIACCESS_LIBS@//"
PKGCONFIG = pciaccess.pc
+beforeinstall:
+ @cmp -s ${DESTDIR}${X11BASE}/include/pciaccess.h \
+ $(TOP)/include/pciaccess.h || \
+ echo "${INSTALL_DATA} $(TOP)/include/pciaccess.h \
+ ${DESTDIR}${X11BASE}/include/pciaccess.h" && \
+ ${INSTALL_DATA} $(TOP)/include/pciaccess.h \
+ ${DESTDIR}${X11BASE}/include/pciaccess.h
+
.PATH: $(TOP)
.PATH: $(TOP)/src