diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-02-08 07:21:38 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-02-08 07:21:38 +0000 |
commit | 4e0aa3cac68c35a0bd5e9d78b67e820ae9fea4d0 (patch) | |
tree | 0d79116a3741946d63b1c7a0ff7830aa23a0c86d /Build/source/texk/dvipng/doc | |
parent | 60e5f2d4b36e6e72fb9d1af137d2da6efbea5ed8 (diff) |
Use a Makefile fragment to (un)install manpage links
git-svn-id: svn://tug.org/texlive/trunk@21344 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipng/doc')
-rw-r--r-- | Build/source/texk/dvipng/doc/Makefile.am | 15 | ||||
-rw-r--r-- | Build/source/texk/dvipng/doc/Makefile.in | 35 |
2 files changed, 34 insertions, 16 deletions
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. |