summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2007-10-27 20:01:24 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2007-10-27 20:01:24 +0000
commit4a47dab8491f025afa43b6a014454d8136eb0a01 (patch)
tree84a6db996524a5864bc81506fd04dee5b20bd619
parentd1466d52947e6c018bcb39d258343d75682d592e (diff)
Rebuild the fontcache at the end of make install.
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7b87d10de..970a9ba0f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.21 2007/06/11 15:27:51 todd Exp $
+# $OpenBSD: Makefile,v 1.22 2007/10/27 20:01:23 matthieu Exp $
.include <bsd.own.mk>
LOCALAPPD=/usr/local/lib/X11/app-defaults
@@ -35,6 +35,7 @@ beforeinstall:
afterinstall:
${MAKE} install-mk
${MAKE} fix-appd
+ ${MAKE} font-cache
/usr/libexec/makewhatis ${DESTDIR}/usr/X11R6/man
realinstall: _SUBDIRUSE
@@ -45,6 +46,14 @@ install-mk:
&& ${MAKE} X11BASE=${X11BASE} install
.endif
+font-cache:
+ @echo "running fc-cache"
+ if test -z "$(DESTDIR)"; then \
+ fc-cache -s -v ;\
+ else\
+ fc-cache -c ${DESTDIR} -s -v ;\
+ fi
+
fix-appd:
# Make sure /usr/local/lib/X11/app-defaults is a link
if [ ! -L $(DESTDIR)${LOCALAPPD} ]; then \