diff options
Diffstat (limited to 'Build/source/texk/dvipng')
-rw-r--r-- | Build/source/texk/dvipng/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/dvipng/doc/Makefile.am | 15 | ||||
-rw-r--r-- | Build/source/texk/dvipng/doc/Makefile.in | 35 |
3 files changed, 38 insertions, 16 deletions
diff --git a/Build/source/texk/dvipng/ChangeLog b/Build/source/texk/dvipng/ChangeLog index 7059ee234a7..48dd9d4b67e 100644 --- a/Build/source/texk/dvipng/ChangeLog +++ b/Build/source/texk/dvipng/ChangeLog @@ -1,3 +1,7 @@ +2011-02-08 Peter Breitenlohner <peb@mppmu.mpg.de> + + * doc/Makefile.am: Use ../am/man1_links.am for manpage links. + 2010-12-16 Peter Breitenlohner <peb@mppmu.mpg.de> * doc/Makefile.am: Check that the doc/*.texi files are copies diff --git a/Build/source/texk/dvipng/doc/Makefile.am b/Build/source/texk/dvipng/doc/Makefile.am index 0dd468b48e5..7be4acd76e4 100644 --- a/Build/source/texk/dvipng/doc/Makefile.am +++ b/Build/source/texk/dvipng/doc/Makefile.am @@ -1,6 +1,6 @@ ## Makefile.am for the TeX Live subdirectory texk/dvipng/doc/ ## -## Copyright (C) 2009, 2010 Peter Breitenlohner <tex-live@tug.org> +## Copyright (C) 2009 - 2011 Peter Breitenlohner <tex-live@tug.org> ## You may freely use, modify and/or distribute this file. # info_TEXINFOS = \ @@ -39,13 +39,14 @@ dvipng.1: dvipng.texi readme.texi dvipng.pod > dvipng.1 rm dvipng.pod +# Symlinks within $(man1dir): FILE:LINK indicates LINK.1->FILE.1 +man1_links = dvipng:dvigif + +include $(top_srcdir)/../am/man1_links.am + if have_gif -install-data-hook: - cd $(DESTDIR)$(man1dir) && \ - rm -f dvigif.1 && \ - $(LN_S) dvipng.1 dvigif.1 -uninstall-hook: - rm -f $(DESTDIR)$(man1dir)/dvigif.1 +install-data-hook: install-man1-links +uninstall-hook: uninstall-man1-links endif have_gif DISTCLEANFILES = doc-stamp diff --git a/Build/source/texk/dvipng/doc/Makefile.in b/Build/source/texk/dvipng/doc/Makefile.in index 9d0947ba42b..5fc697ccc6f 100644 --- a/Build/source/texk/dvipng/doc/Makefile.in +++ b/Build/source/texk/dvipng/doc/Makefile.in @@ -34,9 +34,10 @@ PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ -subdir = doc DIST_COMMON = $(dist_man1_MANS) $(dist_noinst_SCRIPTS) \ - $(dvipng_TEXINFOS) $(srcdir)/Makefile.am $(srcdir)/Makefile.in + $(dvipng_TEXINFOS) $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ + $(top_srcdir)/../am/man1_links.am +subdir = doc ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gs-device.m4 \ $(top_srcdir)/m4/makeinfo.m4 \ @@ -258,13 +259,16 @@ dvipng_TEXINFOS = \ BUILT_SOURCES = doc-stamp dist_noinst_SCRIPTS = texi2pod.pl dist_man1_MANS = dvipng.1 + +# Symlinks within $(man1dir): FILE:LINK indicates LINK.1->FILE.1 +man1_links = dvipng:dvigif DISTCLEANFILES = doc-stamp all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: .SUFFIXES: .dvi .html .info .pdf .ps .texi -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/../am/man1_links.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ @@ -758,13 +762,26 @@ dvipng.1: dvipng.texi readme.texi pod2man --center="User commands" --release="$(PACKAGE_STRING)" \ dvipng.pod > dvipng.1 rm dvipng.pod +.PHONY: install-man1-links uninstall-man1-links + +install-man1-links: + @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 || exit 1; \ + done + +uninstall-man1-links: + @for s in $(man1_links); do \ + link=`echo $$s | sed 's,.*:,,'`; \ + rm -f $(DESTDIR)$(man1dir)/$$link.1; \ + done -@have_gif_TRUE@install-data-hook: -@have_gif_TRUE@ cd $(DESTDIR)$(man1dir) && \ -@have_gif_TRUE@ rm -f dvigif.1 && \ -@have_gif_TRUE@ $(LN_S) dvipng.1 dvigif.1 -@have_gif_TRUE@uninstall-hook: -@have_gif_TRUE@ rm -f $(DESTDIR)$(man1dir)/dvigif.1 +@have_gif_TRUE@install-data-hook: install-man1-links +@have_gif_TRUE@uninstall-hook: uninstall-man1-links # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. |