| 1 |
## $Id: Makefile.am 71118 2024-04-29 14:27:21Z takuji $ |
| 2 |
## Makefile.am for the TeX Live subdirectory texk/web2c/omegafonts/ |
| 3 |
## |
| 4 |
## Copyright 2015-2021 Karl Berry <[email protected]> |
| 5 |
## Copyright 2009-2015 Peter Breitenlohner <[email protected]> |
| 6 |
## You may freely use, modify and/or distribute this file. |
| 7 |
## |
| 8 |
AM_CPPFLAGS = -I$(top_builddir)/.. -I$(top_srcdir) $(KPATHSEA_INCLUDES) -DNOT_WEB2C |
| 9 |
AM_CFLAGS = $(WARNING_CFLAGS) |
| 10 |
AM_YFLAGS = -d -v |
| 11 |
|
| 12 |
proglib = ../lib/lib.a |
| 13 |
|
| 14 |
# Rebuild $(proglib) |
| 15 |
$(proglib): ${top_srcdir}/lib/*.c |
| 16 |
cd ../lib && $(MAKE) $(AM_MAKEFLAGS) |
| 17 |
|
| 18 |
## Rebuild libkpathsea |
| 19 |
@KPATHSEA_RULE@ |
| 20 |
|
| 21 |
bin_PROGRAMS = |
| 22 |
if OTANGLE |
| 23 |
bin_PROGRAMS += omfonts |
| 24 |
if WIN32 |
| 25 |
noinst_PROGRAMS = call_omfonts |
| 26 |
endif WIN32 |
| 27 |
endif OTANGLE |
| 28 |
EXTRA_PROGRAMS = omfonts |
| 29 |
|
| 30 |
omfonts_SOURCES = \ |
| 31 |
char_routines.c \ |
| 32 |
char_routines.h \ |
| 33 |
dimen_routines.c \ |
| 34 |
dimen_routines.h \ |
| 35 |
dvi.h \ |
| 36 |
error_routines.c \ |
| 37 |
error_routines.h \ |
| 38 |
extra_routines.c \ |
| 39 |
extra_routines.h \ |
| 40 |
font_routines.c \ |
| 41 |
font_routines.h \ |
| 42 |
header_routines.c \ |
| 43 |
header_routines.h \ |
| 44 |
ligkern_routines.c \ |
| 45 |
ligkern_routines.h \ |
| 46 |
list_routines.c \ |
| 47 |
list_routines.h \ |
| 48 |
manifests.h \ |
| 49 |
omfonts.c \ |
| 50 |
omfonts.h \ |
| 51 |
out_ofm.c \ |
| 52 |
out_ofm.h \ |
| 53 |
out_routines.c \ |
| 54 |
out_routines.h \ |
| 55 |
param_routines.c \ |
| 56 |
param_routines.h \ |
| 57 |
parse_ofm.c \ |
| 58 |
parse_ofm.h \ |
| 59 |
parser.h \ |
| 60 |
pl-parser.y \ |
| 61 |
pl-lexer.l \ |
| 62 |
print_routines.c \ |
| 63 |
print_routines.h |
| 64 |
|
| 65 |
LDADD = $(proglib) $(KPATHSEA_LIBS) |
| 66 |
omfonts_DEPENDENCIES = $(proglib) $(KPATHSEA_DEPEND) |
| 67 |
|
| 68 |
call_omfonts_CPPFLAGS = -DEXEPROG=\"omfonts.exe\" |
| 69 |
nodist_call_omfonts_SOURCES = ../callexe.c |
| 70 |
call_omfonts_LDADD = |
| 71 |
|
| 72 |
DISTCLEANFILES = pl-parser.output |
| 73 |
|
| 74 |
linked_programs = ofm2opl opl2ofm ovf2ovp ovp2ovf |
| 75 |
|
| 76 |
bin_links = \ |
| 77 |
omfonts$(EXEEXT):ofm2opl \ |
| 78 |
omfonts$(EXEEXT):opl2ofm \ |
| 79 |
omfonts$(EXEEXT):ovf2ovp \ |
| 80 |
omfonts$(EXEEXT):ovp2ovf |
| 81 |
|
| 82 |
include $(top_srcdir)/../../am/bin_links.am |
| 83 |
|
| 84 |
if OTANGLE |
| 85 |
install-exec-hook: install-bin-links |
| 86 |
if WIN32 |
| 87 |
# same install happens in dvipdfmx. |
| 88 |
for f in $(linked_programs); do \ |
| 89 |
$(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) call_omfonts$(EXEEXT) "$(DESTDIR)$(bindir)/$$f$(EXEEXT)"; \ |
| 90 |
done |
| 91 |
endif WIN32 |
| 92 |
uninstall-hook: uninstall-bin-links |
| 93 |
if WIN32 |
| 94 |
for f in $(linked_programs); do \ |
| 95 |
rm -f $(DESTDIR)$(bindir)/$$f$(EXEEXT); \ |
| 96 |
done |
| 97 |
endif WIN32 |
| 98 |
endif OTANGLE |
| 99 |
|
| 100 |
## Tests |
| 101 |
## |
| 102 |
OMFONTS_tests = bad.test charwd.test check.test help.test level1.test ligkern.test \ |
| 103 |
ofonts.test omfonts.test overbmp.test realnum.test repeat.test \ |
| 104 |
selectfont.test shorten.test specialhex.test version.test yannis.test |
| 105 |
if OTANGLE |
| 106 |
TESTS = $(OMFONTS_tests) |
| 107 |
endif OTANGLE |
| 108 |
bad.log charwd.log check.log help.log level1.log ligkern.log \ |
| 109 |
ofonts.log overbmp.log realnum.log repeat.log \ |
| 110 |
selectfont.log specialhex.log version.log: omfonts$(EXEEXT) |
| 111 |
omfonts.log: omfonts$(EXEEXT) ../pltotf$(EXEEXT) ../tftopl$(EXEEXT) |
| 112 |
shorten.log yannis.log: omfonts$(EXEEXT) ../pltotf$(EXEEXT) |
| 113 |
../pltotf$(EXEEXT): |
| 114 |
cd .. && $(MAKE) $(AM_MAKEFLAGS) pltotf$(EXEEXT) |
| 115 |
../tftopl$(EXEEXT): |
| 116 |
cd .. && $(MAKE) $(AM_MAKEFLAGS) tftopl$(EXEEXT) |
| 117 |
|
| 118 |
EXTRA_DIST = $(OMFONTS_tests) |
| 119 |
|
| 120 |
## bad.test |
| 121 |
EXTRA_DIST += \ |
| 122 |
tests/badofm.ofm tests/badopl.opl \ |
| 123 |
tests/badovf.ofm tests/badovf.ovf tests/badovp.ovp |
| 124 |
DISTCLEANFILES += bad*.* |
| 125 |
## charwd.test |
| 126 |
EXTRA_DIST += tests/charwd-r.pl tests/charwd-v.vpl |
| 127 |
DISTCLEANFILES += tests/charwdr.* tests/charwdv.* |
| 128 |
## check.test |
| 129 |
EXTRA_DIST += tests/check.ofm tests/check.opl tests/checked.opl |
| 130 |
DISTCLEANFILES += tests/xcheck* |
| 131 |
## level1.test |
| 132 |
EXTRA_DIST += tests/level1.opl |
| 133 |
DISTCLEANFILES += tests/xlevel1.* |
| 134 |
## ligkern.test |
| 135 |
EXTRA_DIST += \ |
| 136 |
tests/ligall.opl tests/ligbch.opl tests/ligbdy.opl \ |
| 137 |
tests/ligblb.opl tests/ligblv.opl tests/ligblv.ovp \ |
| 138 |
tests/ligloop1.ofm tests/ligloop1.opl tests/ligloop2.opl \ |
| 139 |
tests/liguse.opl tests/liguse1.opl tests/liguse2.opl |
| 140 |
DISTCLEANFILES += tests/xlig*.* |
| 141 |
## ofonts.test |
| 142 |
EXTRA_DIST += tests/ofontr0.pl \ |
| 143 |
tests/ofontr1.pl tests/ofontr1.vpl \ |
| 144 |
tests/ofontr2.opl tests/ofontr2.ovp \ |
| 145 |
tests/ofontr3.opl tests/ofontr3.ovp \ |
| 146 |
tests/ofontv4.pl tests/ofontv4.vpl \ |
| 147 |
tests/ofontv5.opl tests/ofontv5.ovp \ |
| 148 |
tests/ofontv6.opl tests/ofontv6.ovp |
| 149 |
DISTCLEANFILES += tests/xofont* |
| 150 |
## omfonts.test |
| 151 |
EXTRA_DIST += tests/Cherokee.pl tests/OCherokee.ovp |
| 152 |
DISTCLEANFILES += tests/Cherokee.tfm tests/OCherokee.ofm \ |
| 153 |
tests/OCherokee.opl tests/OCherokee.ovf \ |
| 154 |
tests/xCherokee.* tests/xOCherokee.* |
| 155 |
## overbmp.test |
| 156 |
EXTRA_DIST += tests/inbmp.opl tests/overbmp.opl tests/overbmp.ovp \ |
| 157 |
tests/overucs.opl tests/overucs.ovp adbjpn.opl |
| 158 |
DISTCLEANFILES += tests/xinbmp* tests/xoverbmp* tests/xoverucs* tests/xadbjpn* |
| 159 |
## realnum.test |
| 160 |
EXTRA_DIST += tests/realnum.opl tests/realnum.out |
| 161 |
DISTCLEANFILES += tests/realnum.* |
| 162 |
## repeat.test |
| 163 |
EXTRA_DIST += tests/repeat.opl tests/repeated.opl |
| 164 |
DISTCLEANFILES += tests/xrepeated.* |
| 165 |
## selectfont.test |
| 166 |
EXTRA_DIST += tests/sample.out tests/sample.ovp tests/sample0-h.opl |
| 167 |
DISTCLEANFILES += tests/sample*.ofm tests/sample*.ovf tests/sample1-h.opl tests/xsample*.out |
| 168 |
## shorten.test |
| 169 |
EXTRA_DIST += tests/shorten.opl |
| 170 |
DISTCLEANFILES += tests/shortend.* |
| 171 |
## specialhex.test |
| 172 |
EXTRA_DIST += tests/specialhex.ovp |
| 173 |
DISTCLEANFILES += tests/specialhex.ofm tests/specialhex.opl \ |
| 174 |
tests/specialhex.ovf tests/xspecialhex.* |
| 175 |
## yannis.test |
| 176 |
EXTRA_DIST += tests/arabicr.pl tests/arabic.ovp |
| 177 |
DISTCLEANFILES += tests/*yarabic* |
| 178 |
|