| 1 |
## $Id: Makefile.am 73848 2025-02-10 18:36:39Z karl $ |
| 2 |
## Makefile.am for the TeX Live subdirectory texk/texlive/tl_support/ |
| 3 |
## |
| 4 |
## Copyright 2013-2020 Karl Berry <[email protected]> |
| 5 |
## You may freely use, modify and/or distribute this file. |
| 6 |
|
| 7 |
install-data-hook: install-man1-links |
| 8 |
uninstall-hook: uninstall-man1-links |
| 9 |
|
| 10 |
dist_man_MANS = \ |
| 11 |
allcm.1 \ |
| 12 |
allec.1 \ |
| 13 |
allneeded.1 \ |
| 14 |
dvi2fax.1 \ |
| 15 |
dvired.1 \ |
| 16 |
e2pall.1 \ |
| 17 |
fmtutil.1 \ |
| 18 |
fmtutil.cnf.5 \ |
| 19 |
fontinst.1 \ |
| 20 |
kpsetool.1 \ |
| 21 |
kpsewhere.1 \ |
| 22 |
mktexlsr.1 \ |
| 23 |
mktexmf.1 \ |
| 24 |
mktexpk.1 \ |
| 25 |
mktextfm.1 \ |
| 26 |
ps2frag.1 \ |
| 27 |
pslatex.1 \ |
| 28 |
rubibtex.1 \ |
| 29 |
rumakeindex.1 \ |
| 30 |
texconfig.1 \ |
| 31 |
texlinks.1 \ |
| 32 |
updmap.1 \ |
| 33 |
updmap.cfg.5 |
| 34 |
|
| 35 |
man1_links = \ |
| 36 |
fmtutil:fmtutil-sys \ |
| 37 |
kpsetool:kpsexpand \ |
| 38 |
kpsetool:kpsepath \ |
| 39 |
fmtutil:mktexfmt \ |
| 40 |
mktexlsr:texhash \ |
| 41 |
texconfig:texconfig-sys \ |
| 42 |
updmap:updmap-sys |
| 43 |
|
| 44 |
include $(top_srcdir)/../../am/man1_links.am |
| 45 |
|
| 46 |
## Support files |
| 47 |
texconfigdir = $(datarootdir)/texmf-dist/texconfig |
| 48 |
dist_texconfig_SCRIPTS = tcfmgr |
| 49 |
dist_texconfig_DATA = tcfmgr.map |
| 50 |
|
| 51 |
web2cdir = $(datarootdir)/texmf-dist/web2c |
| 52 |
dist_web2c_DATA = fmtutil.cnf |
| 53 |
|
| 54 |
## Generate the updmap/fmtutil man page using help2man plus a bit of |
| 55 |
## handwritten material. But don't actually update updmap/fmtutil.1, |
| 56 |
## since we don't want to require help2man for an install. Leave that |
| 57 |
## to be done by hand (see tlpkg/doc/releng.txt). |
| 58 |
EXTRA_DIST = updmap.help2man fmtutil.help2man |
| 59 |
.PHONY: xmans xupdmap.1 xfmtutil.1 xmflua.1 |
| 60 |
xmans: xupdmap.1 xfmtutil.1 xmflua.1 |
| 61 |
Master_dir = $(top_srcdir)/../../../../Master |
| 62 |
tl_scripts_dir = $(Master_dir)/texmf-dist/scripts/texlive |
| 63 |
# |
| 64 |
xupdmap.1: updmap.help2man $(tl_scripts_dir)/updmap.pl |
| 65 |
help2man --include=$< --source="TeX Live" --no-info \ |
| 66 |
$(tl_scripts_dir)/updmap.pl >/tmp/$@ |
| 67 |
groff -mandoc -Thtml /tmp/$@ >/tmp/[email protected] |
| 68 |
# |
| 69 |
xfmtutil.1: fmtutil.help2man $(tl_scripts_dir)/fmtutil.pl |
| 70 |
help2man --include=$< --source="TeX Live" --no-info \ |
| 71 |
$(tl_scripts_dir)/fmtutil.pl >/tmp/$@ |
| 72 |
groff -mandoc -Thtml /tmp/$@ >/tmp/[email protected] |
| 73 |
# |
| 74 |
xmflua.1: |
| 75 |
help2man --source="TeX Live" --no-info \ |
| 76 |
mflua >/tmp/$@ |
| 77 |
groff -mandoc -Thtml /tmp/$@ >/tmp/[email protected] |
| 78 |
|
| 79 |
## |
| 80 |
## This target is invoked by the top-level make, |
| 81 |
.PHONY: run-texlinks |
| 82 |
## to create the per-format engine symlinks in $(bindir), |
| 83 |
## after everything else is installed. We explicitly specify the |
| 84 |
## fmtutil.cnf file to use for the sake of distro builds. |
| 85 |
## We pass along the executable extension for the sake of cygwin, so we |
| 86 |
## don't create dangling symlinks there (even though they work). |
| 87 |
## |
| 88 |
## The texlinks script is installed by ../linked_scripts/Makefile[.am]. |
| 89 |
## If it doesn't exist, e.g., if --disable-texlive was given, do nothing here. |
| 90 |
## So we do not specify make-level dependencies, but instead check if |
| 91 |
## the texlinks file (normally a symlink) and fmtutil.cnf exist. |
| 92 |
## |
| 93 |
texlinks_prog = $(DESTDIR)$(bindir)/texlinks |
| 94 |
texlinks_fmtutil = $(DESTDIR)$(web2cdir)/fmtutil.cnf |
| 95 |
# |
| 96 |
run_texlinks = $(texlinks_prog) -v \ |
| 97 |
-f $(texlinks_fmtutil) \ |
| 98 |
-e "$(EXEEXT)" $(DESTDIR)$(bindir) |
| 99 |
# |
| 100 |
run-texlinks: |
| 101 |
if !WIN32 |
| 102 |
if test -s $(texlinks_prog) && test -s $(texlinks_fmtutil); then \ |
| 103 |
echo "running texlinks in `pwd` via: $(run_texlinks)"; \ |
| 104 |
PATH="$(DESTDIR)$(bindir):$(PATH)"; export PATH; $(run_texlinks); \ |
| 105 |
else :; fi |
| 106 |
endif !WIN32 |