summaryrefslogtreecommitdiff
path: root/Build/source/texk/ttf2pk2/Makefile.am
blob: e3d00fa9692e87463fc2d856dacea01e4b00e375 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
## Makefile.am for the TeX Live subdirectory texk/ttf2pk2/
##
## Copyright (C) 2011 Peter Breitenlohner <tex-live@tug.org>
## You may freely use, modify and/or distribute this file.
##
ACLOCAL_AMFLAGS = -I ../../m4

INCLUDES = -I$(top_srcdir)/include $(KPATHSEA_INCLUDES) $(FREETYPE2_INCLUDES)
AM_CPPFLAGS = -DHAVE_LIBKPATHSEA
AM_CFLAGS = $(WARNING_CFLAGS)

bin_PROGRAMS = ttf2pk ttf2tfm

common_sources = \
	errormsg.c \
	errormsg.h \
	filesrch.c \
	filesrch.h \
	ligkern.c \
	ligkern.h \
	newobj.c \
	newobj.h \
	parse.c \
	parse.h \
	subfont.c \
	subfont.h \
	texenc.c \
	texenc.h \
	ttfenc.c \
	ttfenc.h

ttf2pk_SOURCES = \
	$(common_sources) \
	pklib.c \
	pklib.h \
	ttf2pk.c \
	ttflib.c \
	ttflib.h

ttf2tfm_SOURCES = \
	$(common_sources) \
	case.c \
	case.h \
	tfmaux.c \
	tfmaux.h \
	ttf2tfm.c \
	ttf2tfm.h \
	ttfaux.c \
	ttfaux.h \
	vplaux.c \
	vplaux.h

$(ttf2pk_OBJECTS) $(ttf2tfm_OBJECTS): config.force

config.force: $(KPATHSEA_DEPEND) $(FREETYPE2_DEPEND)
	echo timestamp >config.force
	$(SHELL) ./config.status --recheck

DISTCLEANFILES = config.force

LDADD = $(KPATHSEA_LIBS) $(FREETYPE2_LIBS) $(ZLIB_LIBS)

## Rebuild libkpathsea
@KPATHSEA_RULE@
## Rebuild libfreetype
@FREETYPE2_RULE@

dist_man1_MANS = ttf2pk.1 ttf2tfm.1

## Data
##
cfgdatadir = $(datarootdir)/texmf/ttf2pk
dist_cfgdata_DATA = data/VPS.rpl data/ttf2pk.cfg

encdatadir = $(datarootdir)/texmf/fonts/enc/ttf2pk/base
dist_encdata_DATA = data/T1-WGL4.enc

mapdatadir = $(datarootdir)/texmf-dist/source/fonts/zhmetrics
dist_mapdata_DATA = data/ttfonts.map

sfddatadir = $(datarootdir)/texmf-dist/fonts/sfd/ttf2pk
dist_sfddata_DATA = \
	data/Big5.sfd \
	data/EUC.sfd \
	data/HKSCS.sfd \
	data/KS-HLaTeX.sfd \
	data/SJIS.sfd \
	data/UBg5plus.sfd \
	data/UBig5.sfd \
	data/UGB.sfd \
	data/UGBK.sfd \
	data/UJIS.sfd \
	data/UKS-HLaTeX.sfd \
	data/UKS.sfd \
	data/Unicode.sfd

## Tests.
##
TESTS = tests/ttf2pk.test
EXTRA_DIST = $(TESTS)
## tests/ttf2pk.test
EXTRA_DIST += tests/GenR102.ttf tests/gentium-ec.enc tests/ttf2pk.cfg \
	tests/GenR102-ec.map tests/GenR102-h.map tests/GenR102-v.map
DISTCLEANFILES += GenR-ec.vpl GenR102-*

## Not used
##
EXTRA_DIST += \
	BUGS \
	MakeSub.in \
	Makefile.dm \
	dvidrv.btm \
	dvidrv.doc \
	emdir.c \
	emdir.h \
	emtexdir.c \
	emtexdir.h \
	ttf2pk.doc