summaryrefslogtreecommitdiff
path: root/Build/source/texk/tetex/Makefile.am
blob: 96db48ec8ffc5db328391df0d76c7da4210ad9c2 (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
## Makefile.am for the TeX Live subdirectory texk/tetex/
##
## Copyright (C) 2009 Peter Breitenlohner <tex-live@tug.org>
## You may freely use, modify and/or distribute this file.
##
ACLOCAL_AMFLAGS = -I ../../m4

dist_bin_SCRIPTS = \
	allcm \
	allneeded \
	dvi2fax \
	dvired \
	fmtutil \
	fmtutil-sys \
	fontinst \
	kpsetool \
	kpsewhere \
	ps2frag \
	ps4pdf \
	pslatex \
	rubibtex \
	rumakeindex \
	texconfig \
	texconfig-dialog \
	texconfig-sys \
	texlinks \
	updmap \
	updmap-sys

dist_man1_MANS = \
	allcm.man \
	allec.man \
	allneeded.man \
	context/ctxtools.man \
	context/makempy.man \
	context/mptopdf.man \
	context/pdftools.man \
	context/pstopdf.man \
	context/texexec.man \
	context/texfind.man \
	context/texfont.man \
	context/texmfstart.man \
	context/textools.man \
	context/texutil.man \
	dvi2fax.man \
	dvired.man \
	e2pall.man \
	fmtutil.man \
	fontinst.man \
	kpsetool.man \
	kpsewhere.man \
	mkjobtexmf.man \
	ps2frag.man \
	pslatex.man \
	rubibtex.man \
	rumakeindex.man \
	texconfig.man \
	texdoctk.man \
	texlinks.man \
	thumbpdf.man \
	updmap.man

dist_man5_MANS = \
	fmtutil.cnf.5 \
	updmap.cfg.5

tetexdocdir = ${prefix}/texmf/doc/tetex

dist_tetexdoc_DATA = \
	doc/TETEXDOC.dvi \
	doc/TETEXDOC.pdf \
	doc/TETEXDOC.ps \
	doc/teTeX-FAQ

texconfdir = ${prefix}

nobase_dist_texconf_DATA = \
	texmf/texconfig/README \
	texmf/texconfig/g/generic \
	texmf/texconfig/generic \
	texmf/texconfig/v/vt100 \
	texmf/texconfig/x/xterm

texconfigdir = ${prefix}/texmf/texconfig

dist_texconfig_SCRIPTS = tcfmgr

dist_texconfig_DATA = tcfmgr.map

web2cdir = ${prefix}/texmf/web2c

dist_web2c_DATA = fmtutil.cnf

# Symlinks within $(bindir): FILE:LINK indicates LINK->FILE
bin_links = \
	allcm:allec \
	fmtutil:mktexfmt \
	kpsetool:kpsexpand \
	kpsetool:kpsepath

# Symlinks within $(man1dir): FILE:LINK indicates LINK.1->FILE.1
man1_links = $(bin_links) \
	fmtutil:fmtutil-sys \
	texconfig:texconfig-sys \
	updmap:updmap-sys

install-exec-hook:
	@cd $(DESTDIR)$(bindir) && \
	  for s in $(bin_links); do \
	    link=`echo $$s | sed 's,.*:,,'`; \
	    file=`echo $$s | sed 's,:.*,,'`; \
	    rm -f $$link; \
	    echo "creating link '$$link' -> '$$file'"; \
	    $(LN_S) $$file $$link; \
	  done

install-data-hook:
	@cd $(DESTDIR)$(man1dir) && \
	  for s in $(man1_links); do \
	    link=`echo $$s | sed 's,.*:,,'`; \
	    file=`echo $$s | sed 's,:.*,,'`; \
	    rm -f $$link.1; \
	    echo "creating link '$$link.1' -> '$$file.1'"; \
	    $(LN_S) $$file.1 $$link.1; \
	  done

uninstall-hook:
	@for s in $(bin_links); do \
	  link=`echo $$s | sed 's,.*:,,'`; \
	  rm -f $(DESTDIR)$(bindir)/$$link; \
	done
	@for s in $(man1_links); do \
	  link=`echo $$s | sed 's,.*:,,'`; \
	  rm -f $(DESTDIR)$(man1dir)/$$link.1; \
	done

EXTRA_DIST = \
	README.a2ping \
	README.texdoctk

## Not used
##
EXTRA_DIST += \
	doc/Makefile \
	doc/TETEXDOC.bib \
	doc/TETEXDOC.tex \
	fontinst.bat \
	pdfetex-pl.pool \
	updmap.pl

## 
## This target is invoked by the top-level make,
## to create the per-format engine symlinks in $(bindir),
## after everything else is installed.  We explicitly specify the
## fmtutil.cnf file to use for the sake of distro builds.
## We pass along the executable extension for the sake of cygwin, so we
## don't create dangling symlinks there (even though they work).
run_texlinks = $(bindir)/texlinks -v -f $(web2cdir)/fmtutil.cnf \
	       -e "$(EXEEXT)" $(bindir)
run-texlinks:
	PATH="$(bindir):$(PATH)"; export PATH; $(run_texlinks)