From 219d8e5ef3186a2e4847b387fc616c46065859ce Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Mon, 4 Apr 2011 13:25:10 +0000 Subject: install updmap.pl as linked script for both win32 and unix git-svn-id: svn://tug.org/texlive/trunk@21958 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/tetex/Makefile.am | 47 ++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 24 deletions(-) (limited to 'Build/source/texk/tetex/Makefile.am') diff --git a/Build/source/texk/tetex/Makefile.am b/Build/source/texk/tetex/Makefile.am index b25ae06284a..bcbd8385631 100644 --- a/Build/source/texk/tetex/Makefile.am +++ b/Build/source/texk/tetex/Makefile.am @@ -5,7 +5,13 @@ ## ACLOCAL_AMFLAGS = -I ../../m4 +perl_scripts = \ + updmap + shell_scripts = \ + updmap-sys + +sh_scripts = \ allcm \ allneeded \ dvi2fax \ @@ -22,28 +28,21 @@ shell_scripts = \ texconfig \ texconfig-dialog \ texconfig-sys \ - texlinks \ - updmap \ - updmap-sys + texlinks + +scriptsdir = texmf/scripts/tetex +nodist_bin_SCRIPTS = + +include $(srcdir)/../am/script_links.am -## Handled as alias by runscript.tlu -win32_aliases = \ - fontinst.exe - -if WIN32 -if WIN32_WRAP -## We treat the WIN32 aliases as SCRIPTS to avoid automatic build rules -nodist_bin_SCRIPTS = $(win32_aliases) -runscript = $(srcdir)/../texlive/w32_wrapper/runscript.exe -$(win32_aliases): $(runscript) - $(LN_S) $(runscript) $@ -endif WIN32_WRAP -else !WIN32 -nodist_bin_SCRIPTS = $(shell_scripts) +texmfdir = ${prefix}/$(scriptsdir) +dist_texmf_SCRIPTS = $(perl_scripts:=.pl) $(shell_scripts:=.sh) + +if !WIN32 +dist_bin_SCRIPTS = $(sh_scripts) endif !WIN32 -EXTRA_DIST = $(shell_scripts) -CLEANFILES = $(win32_aliases) +CLEANFILES = $(nodist_bin_SCRIPTS) dist_man1_MANS = \ allcm.man \ @@ -104,6 +103,8 @@ man1_links = $(bin_links) \ include $(top_srcdir)/../am/man1_links.am +install-data-hook: install-perl-links install-shell-links install-man1-links + install-exec-hook: if !WIN32 @cd $(DESTDIR)$(bindir) && \ @@ -116,9 +117,7 @@ if !WIN32 done endif !WIN32 -install-data-hook: install-man1-links - -uninstall-hook: uninstall-man1-links +uninstall-hook: uninstall-links uninstall-man1-links if !WIN32 @for s in $(bin_links); do \ link=`echo $$s | sed 's,.*:,,'`; \ @@ -126,14 +125,14 @@ if !WIN32 done endif !WIN32 -EXTRA_DIST += \ +EXTRA_DIST = \ README.texdoctk ## Not used ## EXTRA_DIST += \ fontinst.bat \ - updmap.pl + updmap ## ## This target is invoked by the top-level make, -- cgit v1.2.3