diff options
-rw-r--r-- | mk/Makefile | 8 |
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 |