diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2007-06-01 01:05:26 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2007-06-01 01:05:26 +0000 |
commit | 515fec914744e1db2faa91e1d437206407a53b2d (patch) | |
tree | f69e267744b8bd6ecfebf0d0cc61c28b430dc9fa /font | |
parent | 20ee436bed716a61fb71214bd629ff047d44f37b (diff) |
Only run fc-cache once at the end of fonts installation.
Diffstat (limited to 'font')
-rw-r--r-- | font/Makefile | 8 | ||||
-rw-r--r-- | font/Makefile.inc | 5 | ||||
-rw-r--r-- | font/bitstream-vera-ttf/Makefile | 3 |
3 files changed, 13 insertions, 3 deletions
diff --git a/font/Makefile b/font/Makefile index c5f3cb4cb..a9094feda 100644 --- a/font/Makefile +++ b/font/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.2 2006/12/17 19:52:56 matthieu Exp $ +# $OpenBSD: Makefile,v 1.3 2007/06/01 01:05:25 matthieu Exp $ # util must come 1st, alias must come last SUBDIR= util encodings \ @@ -15,6 +15,12 @@ SUBDIR= util encodings \ EXTRAS= bitstream-vera-ttf +afterinstall: + @if test -z "$(DESTDIR)"; then \ + echo "running fc-cache";\ + fc-cache -s -v ;\ + fi + .include <bsd.subdir.mk> build: _SUBDIRUSE diff --git a/font/Makefile.inc b/font/Makefile.inc new file mode 100644 index 000000000..e7cceb34e --- /dev/null +++ b/font/Makefile.inc @@ -0,0 +1,5 @@ +# $OpenBSD: Makefile.inc,v 1.1 2007/06/01 01:05:25 matthieu Exp $ + +realinstall: + exec ${MAKE} install FCCACHE=: + diff --git a/font/bitstream-vera-ttf/Makefile b/font/bitstream-vera-ttf/Makefile index 9569ff4cc..4f6747338 100644 --- a/font/bitstream-vera-ttf/Makefile +++ b/font/bitstream-vera-ttf/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.2 2007/03/31 16:41:11 matthieu Exp $ +# $OpenBSD: Makefile,v 1.3 2007/06/01 01:05:25 matthieu Exp $ FONT_FILES= \ Vera.ttf \ @@ -31,6 +31,5 @@ install: mkfontscale ${DESTDIR}${fontdir} @rm -f ${DESTDIR}${fontdir}/fonts.dir mkfontdir ${DESTDIR}${fontdir} - fc-cache -v ${DESTDIR}${fontdir} .include <bsd.xorg.mk> |