TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ..
SRCDIR    = @srcdir@
VPATH     = @srcdir@
MODULE    = none
fontdir   = $(datadir)/fonts/wine

BITMAP_FONTS  = \
	wine_coure.fon \
	wine_couree.fon \
	wine_courer.fon \
	wine_sserife.fon \
	wine_sserifee.fon \
	wine_sserifer.fon \
	wine_vgasys.fon \
	wine_vgasyse.fon \
	wine_vgasysr.fon

TRUETYPE_FONTS = \
	wine_marlett.ttf

FONTS = \
	$(BITMAP_FONTS) \
	$(TRUETYPE_FONTS)

all: $(FONTS)

@MAKE_RULES@

wine_courier.: wine_courier.sfd
	$(FONTFORGE) -script $(TOPSRCDIR)/fonts/genttf.ff $< $@

wine_sans_serif.: wine_sans_serif.sfd
	$(FONTFORGE) -script $(TOPSRCDIR)/fonts/genttf.ff $< $@

wine_system.: wine_system.sfd
	$(FONTFORGE) -script $(TOPSRCDIR)/fonts/genttf.ff $< $@

wine_courier-1252-96-13.fnt: wine_courier. $(SFNT2FNT)
	$(LDPATH) $(SFNT2FNT) $< 13 1252 96 128 8

wine_courier-1250-96-13.fnt: wine_courier. $(SFNT2FNT)
	$(LDPATH) $(SFNT2FNT) $< 13 1250 96 128 8

wine_courier-1251-96-13.fnt: wine_courier. $(SFNT2FNT)
	$(LDPATH) $(SFNT2FNT) $< 13 1251 96 128 8

wine_sans_serif-1252-96-13.fnt: wine_sans_serif. $(SFNT2FNT)
	$(LDPATH) $(SFNT2FNT) $< 13 1252 96 129 5

wine_sans_serif-1252-96-16.fnt: wine_sans_serif. $(SFNT2FNT)
	$(LDPATH) $(SFNT2FNT) $< 16 1252 96 129 7

wine_sans_serif-1252-96-20.fnt: wine_sans_serif. $(SFNT2FNT)
	$(LDPATH) $(SFNT2FNT) $< 20 1252 96 129 8

wine_sans_serif-1250-96-13.fnt: wine_sans_serif. $(SFNT2FNT)
	$(LDPATH) $(SFNT2FNT) $< 13 1250 96 129 5

wine_sans_serif-1250-96-16.fnt: wine_sans_serif. $(SFNT2FNT)
	$(LDPATH) $(SFNT2FNT) $< 16 1250 96 129 7

wine_sans_serif-1251-96-13.fnt: wine_sans_serif. $(SFNT2FNT)
	$(LDPATH) $(SFNT2FNT) $< 13 1251 96 129 5

wine_sans_serif-1251-96-16.fnt: wine_sans_serif. $(SFNT2FNT)
	$(LDPATH) $(SFNT2FNT) $< 16 1251 96 129 7

wine_sans_serif-1251-96-20.fnt: wine_sans_serif. $(SFNT2FNT)
	$(LDPATH) $(SFNT2FNT) $< 20 1251 96 129 8

wine_system-1252-96-16.fnt: wine_system. $(SFNT2FNT)
	$(LDPATH) $(SFNT2FNT) $< 16 1252 96 128 7

wine_system-1250-96-16.fnt: wine_system. $(SFNT2FNT)
	$(LDPATH) $(SFNT2FNT) $< 16 1250 96 128 7

wine_system-1251-96-16.fnt: wine_system. $(SFNT2FNT)
	$(LDPATH) $(SFNT2FNT) $< 16 1251 96 128 7

wine_sserife.fon: wine_sans_serif-1252-96-13.fnt wine_sans_serif-1252-96-16.fnt wine_sans_serif-1252-96-20.fnt $(FNT2FON)
	$(FNT2FON) wine_sans_serif-1252-96-13.fnt wine_sans_serif-1252-96-16.fnt wine_sans_serif-1252-96-20.fnt $@

wine_sserifee.fon: wine_sans_serif-1250-96-13.fnt wine_sans_serif-1250-96-16.fnt $(FNT2FON)
	$(FNT2FON) wine_sans_serif-1250-96-13.fnt wine_sans_serif-1250-96-16.fnt $@

wine_sserifer.fon: wine_sans_serif-1251-96-13.fnt wine_sans_serif-1251-96-16.fnt wine_sans_serif-1251-96-20.fnt $(FNT2FON)
	$(FNT2FON) wine_sans_serif-1251-96-13.fnt wine_sans_serif-1251-96-16.fnt wine_sans_serif-1251-96-20.fnt $@

wine_vgasys.fon: wine_system-1252-96-16.fnt $(FNT2FON)
	$(FNT2FON) wine_system-1252-96-16.fnt $@

wine_vgasyse.fon: wine_system-1250-96-16.fnt $(FNT2FON)
	$(FNT2FON) wine_system-1250-96-16.fnt $@

wine_vgasysr.fon: wine_system-1251-96-16.fnt $(FNT2FON)
	$(FNT2FON) wine_system-1251-96-16.fnt $@

wine_coure.fon: wine_courier-1252-96-13.fnt $(FNT2FON)
	$(FNT2FON) wine_courier-1252-96-13.fnt $@

wine_couree.fon: wine_courier-1250-96-13.fnt $(FNT2FON)
	$(FNT2FON) wine_courier-1250-96-13.fnt $@

wine_courer.fon: wine_courier-1251-96-13.fnt $(FNT2FON)
	$(FNT2FON) wine_courier-1251-96-13.fnt $@

install:: $(FONTS)
	$(MKINSTALLDIRS) $(fontdir)
	for i in $(FONTS); do $(INSTALL_DATA) $$i $(fontdir)/$$i || exit 1; done

uninstall::
	-cd $(fontdir) && $(RM) $(FONTS)
	-rmdir $(fontdir)

clean::
	$(RM) *.fon *.fnt *.ttf wine_courier. wine_sans_serif. wine_system.

### Dependencies: