summaryrefslogtreecommitdiff
path: root/Build/source/texk/tetex/Makefile.in
blob: 81ed0bdcec2f6ea67af448647636a5e74f15b4b7 (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
# @configure_input@
# Makefile for teTeX's extra scripts - te@dbs.uni-hannover.de.
# Public domain.

kpse_include ../make/paths.mk
kpse_include ../make/common.mk
kpse_include ../make/programs.mk

man5dir = $(mandir)/man5

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

# .pl and in texmf
LINKEDPLSCRIPTS = a2ping e2pall epstopdf pdfcrop pkfix ps2eps
#
# no extension and in texmf-dist.
# (need to create a config file or something, ick.)
LINKEDNOEXTSCRIPTS = glossaries/makeglossaries

CONTEXTSCRIPTS = \
  ctxtools exatools luatools makempy mpstools mptopdf mtxtools \
  pdftools pstopdf rlxtools runtools texexec texfont texmfstart \
  textools texutil tmftools xmltools

contextmanpgs = \
  ctxtools makempy mptopdf pstopdf texfind texmfstart \
  fdf2tex pdftools texexec texfont textools texutil

manpgs = \
  allcm allec allneeded dvi2fax dvired e2pall epstopdf fontinst \
  kpsetool kpsewhere mkocp mkofm ofm2opl opl2ofm otp2ocp outocp \
  ovf2ovp ovp2ovf ps2frag pslatex rubibtex rumakeindex texconfig texdoc \
  texdoctk thumbpdf ttf2afm updmap

all: $(SCRIPTS)
default: all

install: install-data install-exec
check:

# Auxiliary files.
install-data::
	$(SHELL) $(top_srcdir)/../mkinstalldirs $(man1dir) $(man5dir) $(texpooldir) $(texmf)/doc/tetex
	for p in $(manpgs); do \
	  $(INSTALL_DATA) $(srcdir)/$$p.man $(man1dir)/$$p.$(manext); \
	done
	for p in $(contextmanpgs); do \
	  $(INSTALL_DATA) $(srcdir)/context/$$p.man $(man1dir)/$$p.$(manext); \
	done
	$(INSTALL_DATA) $(srcdir)/fmtutil.man $(man1dir)/fmtutil.1
	$(INSTALL_DATA) $(srcdir)/texlinks.man $(man1dir)/texlinks.1
	$(INSTALL_DATA) $(srcdir)/fmtutil.cnf.5 $(man5dir)/fmtutil.cnf.5
	$(INSTALL_DATA) $(srcdir)/updmap.cfg.5 $(man5dir)/updmap.cfg.5
	cd $(man1dir); rm -f allec.$(manext) texhash.$(manext) \
	  lambda.$(manext) pdflatex.$(manext) kpsepath.$(manext) \
	  kpsexpand.$(manext) mf-nowin.$(manext) ctangle.$(manext) \
	  cweave.$(manext) odvicopy.$(manext) \
	  odvitype.$(manext) texconfig-sys.$(manext) \
	  updmap-sys.$(manext) mktexfmt.$(manext) fmtutil-sys.$(manext)
	ln -s allcm.$(manext) $(man1dir)/allec.$(manext)
	ln -s mktexlsr.$(manext) $(man1dir)/texhash.$(manext)
	ln -s omega.$(manext) $(man1dir)/lambda.$(manext)
	ln -s pdftex.$(manext) $(man1dir)/pdflatex.$(manext)
	ln -s kpsetool.$(manext) $(man1dir)/kpsepath.$(manext)
	ln -s kpsetool.$(manext) $(man1dir)/kpsexpand.$(manext)
	ln -s mf.$(manext) $(man1dir)/mf-nowin.$(manext)
	ln -s cweb.$(manext) $(man1dir)/ctangle.$(manext)
	ln -s cweb.$(manext) $(man1dir)/cweave.$(manext)
	ln -s dvicopy.$(manext) $(man1dir)/odvicopy.$(manext)
	ln -s dvitype.$(manext) $(man1dir)/odvitype.$(manext)
	ln -s texconfig.$(manext) $(man1dir)/texconfig-sys.$(manext)
	ln -s updmap.$(manext) $(man1dir)/updmap-sys.$(manext)
	ln -s fmtutil.$(manext) $(man1dir)/mktexfmt.$(manext)
	ln -s fmtutil.$(manext) $(man1dir)/fmtutil-sys.$(manext)
	for p in TETEXDOC.pdf TETEXDOC.ps TETEXDOC.dvi teTeX-FAQ; do \
	  $(INSTALL_DATA) $(srcdir)/doc/$$p $(texmf)/doc/tetex; \
	done
	$(SHELL) $(top_srcdir)/../mkinstalldirs $(texmf)/texconfig $(texmf)/texconfig/g $(texmf)/texconfig/v $(texmf)/texconfig/x
	$(INSTALL_DATA) $(srcdir)/texmf/texconfig/g/generic $(texmf)/texconfig/g
	$(INSTALL_DATA) $(srcdir)/texmf/texconfig/v/vt100 $(texmf)/texconfig/v
	$(INSTALL_DATA) $(srcdir)/texmf/texconfig/x/xterm $(texmf)/texconfig/x
	$(INSTALL_DATA) $(srcdir)/texmf/texconfig/README $(texmf)/texconfig
	$(INSTALL_DATA) $(srcdir)/texmf/texconfig/generic $(texmf)/texconfig
	$(INSTALL_SCRIPT) $(srcdir)/tcfmgr $(texmf)/texconfig/tcfmgr
	$(INSTALL_DATA) $(srcdir)/tcfmgr.map $(texmf)/texconfig/tcfmgr.map

install-exec: install-linkedscripts
	-$(SHELL) $(srcdir)/../mkinstalldirs $(scriptdir)
	for s in $(SCRIPTS); do \
	  $(INSTALL_SCRIPT) $(srcdir)/$$s $(scriptdir)/$$s; \
	done
	for s in $(CONTEXTSCRIPTS); do \
	  $(INSTALL_SCRIPT) $(srcdir)/context/$$s $(scriptdir)/$$s; \
	done
	cd $(scriptdir) && rm -f allec kpsepath kpsexpand texhash; \
	  ln -s allcm allec; \
	  ln -s kpsetool kpsepath; \
	  ln -s kpsetool kpsexpand; \
	  ln -s mktexlsr texhash
	cd $(scriptdir) && rm -f mktexfmt; ln -s fmtutil mktexfmt

# The idea here is to install the scripts themselves in texmf/scripts,
# and have bin/arch/foo be a symlink to ../../texmf/scripts/foo/foo.pl
# (for Perl).  That way we save a bit of disk space, but more
# importantly omit duplication, and most importantly, make it possible
# to invoke the same Perl script on Windows (via a texlua wrapper).
# 
# The installation into texmf/scripts is done (at present) by hand;
# eventually it could and should be done by ctan2tl.  The texlua
# wrapper for Windows is also done by hand, and also could/should be
# done by ctan2tl.
# 
# $(scriptdir) here is the binary directory, e.g., bin/i386-linux.
# 
install-linkedscripts:
	-$(SHELL) $(srcdir)/../mkinstalldirs $(scriptdir)
	for s in $(LINKEDPLSCRIPTS); do \
	  rm -f $(scriptdir)/$$s; \
	  ln -s ../../texmf/scripts/$$s/$$s.pl $(scriptdir)/$$s; \
	done
	for s in $(LINKEDNOEXTSCRIPTS); do \
	  target=$(scriptdir)/`basename $$s`; rm -f $$target; \
	  ln -s ../../texmf-dist/scripts/$$s $$target`; \
	done

kpse_include ../make/clean.mk

config.status: $(srcdir)/configure
	$(SHELL) $(srcdir)/configure --no-create --verbose

Makefile: $(srcdir)/Makefile.in config.status
	$(SHELL) config.status

depend: