Only run fc-cache once at the end of fonts installation.
This commit is contained in:
parent
24191c4e5d
commit
8f689ca03a
@ -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
|
||||
|
5
font/Makefile.inc
Normal file
5
font/Makefile.inc
Normal file
@ -0,0 +1,5 @@
|
||||
# $OpenBSD: Makefile.inc,v 1.1 2007/06/01 01:05:25 matthieu Exp $
|
||||
|
||||
realinstall:
|
||||
exec ${MAKE} install FCCACHE=:
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user