blob: 97a04645c1464bcf5033c6500ccc0d5bbf95edc9 (
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
|
## Makefile.am for the TeX Live subdirectory texk/tex4htk/
##
## Copyright (C) 2009-2010 Peter Breitenlohner <tex-live@tug.org>
## You may freely use, modify and/or distribute this file.
##
ACLOCAL_AMFLAGS = -I ../../m4
INCLUDES = $(KPATHSEA_INCLUDES)
AM_CPPFLAGS = -DANSI -DKPATHSEA
AM_CFLAGS = $(WARNING_CFLAGS)
bin_PROGRAMS = t4ht tex4ht
t4ht_SOURCES = t4ht.c
tex4ht_SOURCES = tex4ht.c
$(t4ht_OBJECTS) $(tex4ht_OBJECTS): $(KPATHSEA_DEPEND)
LDADD = $(KPATHSEA_LIBS)
## Rebuild libkpathsea
@KPATHSEA_RULE@
perl_scripts = mk4ht
shell_scripts = ht htcontext htlatex htmex httex httexi htxelatex htxetex
EXTRA_DIST = $(perl_scripts) $(shell_scripts)
## Make sure $(tex4htdir) exists
##
tex4ht_subdir = texmf-dist/scripts/tex4ht
tex4htdir = ${prefix}/$(tex4ht_subdir)
tex4ht_SCRIPTS =
if WIN32
dist_bin_SCRIPTS = $(shell_scripts:=.bat)
else !WIN32
## Make sure $(bindir) exists
##
dist_bin_SCRIPTS =
endif !WIN32
# We support both multiplatform and non-multiplatform builds.
install-data-hook:
@for p in $(perl_scripts); do \
echo "$(INSTALL_SCRIPT) $(srcdir)/$$p '$(DESTDIR)$(tex4htdir)/$$p.pl'"; \
$(INSTALL_SCRIPT) $(srcdir)/$$p "$(DESTDIR)$(tex4htdir)/$$p.pl"; \
done
@for p in $(shell_scripts); do \
echo "$(INSTALL_SCRIPT) $(srcdir)/$$p '$(DESTDIR)$(tex4htdir)/$$p.sh'"; \
$(INSTALL_SCRIPT) $(srcdir)/$$p "$(DESTDIR)$(tex4htdir)/$$p.sh"; \
done
case "$(bindir)" in \
*/bin) $(MAKE) $(AM_MAKEFLAGS) REL=.. install-links;; \
*/bin/*) $(MAKE) $(AM_MAKEFLAGS) REL=../.. install-links;; \
*) echo "strange directory '$(bindir)' for linked scripts" >&2; \
exit 1;; \
esac
## Link to the basename, removing the extension,
.PHONY: install-links
install-links:
@cd $(DESTDIR)$(bindir) && \
for p in $(perl_scripts); do \
rm -f $$p; \
echo "creating link '$$p' -> '$(REL)/$(tex4ht_subdir)/$$p.pl'"; \
$(LN_S) $(REL)/$(tex4ht_subdir)/$$p.pl $$p; \
done && \
for p in $(shell_scripts); do \
rm -f $$p; \
echo "creating link '$$p' -> '$(REL)/$(tex4ht_subdir)/$$p.sh'"; \
$(LN_S) $(REL)/$(tex4ht_subdir)/$$p.sh $$p; \
done
uninstall-hook:
@for p in $(perl_scripts:=.pl) $(shell_scripts:=.sh); do \
echo "rm -f '$(DESTDIR)$(tex4htdir)/$$p'"; \
rm -f "$(DESTDIR)$(tex4htdir)/$$p"; \
done
@for p in $(perl_scripts) $(shell_scripts); do \
echo "rm -f '$(DESTDIR)$(bindir)/$$p'"; \
rm -f "$(DESTDIR)$(bindir)/$$p"; \
done
## Not used
##
EXTRA_DIST += \
dbcontext \
dblatex \
dbmcontext \
dbmex \
dbmlatex \
dbmmex \
dbmtex \
dbmtexi \
dbmxelatex \
dbmxetex \
dbtex \
dbtexi \
dbxelatex \
dbxetex \
demo.tex \
escontext \
eslatex \
esmex \
estex \
estexi \
esxelatex \
esxetex \
java \
jh1context \
jh1latex \
jh1mex \
jh1tex \
jh1texi \
jh1xelatex \
jh1xetex \
jhcontext \
jhlatex \
jhmex \
jhtex \
jhtexi \
jhxelatex \
jhxetex \
jmcontext \
jmlatex \
jmmex \
jmtex \
jmtexi \
jmxelatex \
jmxetex \
jscontext \
jslatex \
jsmex \
jstex \
jstexi \
jsxelatex \
jsxetex \
mzcontext \
mzlatex \
mzmex \
mztex \
mztexi \
mzxelatex \
mzxetex \
oocontext \
oolatex \
oomex \
ootex \
ootexi \
ooxelatex \
ooxetex \
teicontext \
teilatex \
teimcontext \
teimex \
teimlatex \
teimmex \
teimtex \
teimtexi \
teimxelatex \
teimxetex \
teitex \
teitexi \
teixelatex \
teixetex \
test.tex \
test1.tex \
testa.tex \
testb.tex \
uxhcontext \
uxhlatex \
uxhmex \
uxhtex \
uxhtexi \
uxhxelatex \
uxhxetex \
wcontext \
wlatex \
wmex \
wtex \
wtexi \
wxelatex \
wxetex \
xhcontext \
xhlatex \
xhmcontext \
xhmex \
xhmlatex \
xhmmex \
xhmtex \
xhmtexi \
xhmxelatex \
xhmxetex \
xhtex \
xhtexi \
xhxelatex \
xhxetex \
xv4ht.java
# in case of an SVN repository
dist-hook:
rm -rf `find $(distdir) -name .svn`
|