~ubuntu-branches/ubuntu/raring/vice/raring

« back to all changes in this revision

Viewing changes to data/fonts/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2009-03-31 00:37:15 UTC
  • mfrom: (1.1.7 upstream) (9.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090331003715-i5yisvcfv7mgz3eh
Tags: 2.1.dfsg-1
* New major upstream release (closes: #495937).
* Add desktop files (closes: #501181).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
fontsdir = $(VICEDIR)/fonts
2
2
 
3
3
fonts_DATA = \
4
 
        vice-cbm.bdf
 
4
        vice-cbm.bdf \
 
5
        CBM.ttf
5
6
 
6
7
EXTRA_DIST = $(fonts_DATA) cbm-directory-charset.fon 
7
8
 
8
9
install: install-data-am
9
 
        @echo "Preparing fontdir..." ; \
10
 
        cd $(DESTDIR)$(fontsdir) ; \
11
 
        bdftopcf -o vice-cbm.pcf vice-cbm.bdf ; \
12
 
        rm vice-cbm.bdf ; \
13
 
        mkfontdir .
 
10
@HAVE_FC_CACHE_TRUE@    @echo "Preparing fontdir, please wait..." ; \
 
11
@HAVE_FC_CACHE_TRUE@    if [ ! `fc-cache --list > /dev/null 2>&1` ] ; then \
 
12
@HAVE_FC_CACHE_TRUE@      if test "x${HOME}" != "x" ; then \
 
13
@HAVE_FC_CACHE_TRUE@        mkdir ${HOME}/.fonts > /dev/null 2>&1 ; \
 
14
@HAVE_FC_CACHE_TRUE@        cp $(fontsdir)/CBM.ttf ${HOME}/.fonts ; \
 
15
@HAVE_FC_CACHE_TRUE@        fc-cache ; \
 
16
@HAVE_FC_CACHE_TRUE@      else \
 
17
@HAVE_FC_CACHE_TRUE@        echo '$$HOME not set... giving up.' ; \
 
18
@HAVE_FC_CACHE_TRUE@      fi \
 
19
@HAVE_FC_CACHE_TRUE@    else \
 
20
@HAVE_FC_CACHE_TRUE@      echo 'fc-cache not available... giving up.' ; \
 
21
@HAVE_FC_CACHE_TRUE@    fi
 
22
@HAVE_FC_CACHE_FALSE@   @echo "Preparing fontdir..." ; \
 
23
@HAVE_FC_CACHE_FALSE@   cd $(DESTDIR)$(fontsdir) ; \
 
24
@HAVE_FC_CACHE_FALSE@   bdftopcf -o vice-cbm.pcf vice-cbm.bdf ; \
 
25
@HAVE_FC_CACHE_FALSE@   rm vice-cbm.bdf ; \
 
26
@HAVE_FC_CACHE_FALSE@   mkfontdir .