summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/kpathsea')
-rw-r--r--Build/source/texk/kpathsea/ChangeLog4
-rw-r--r--Build/source/texk/kpathsea/man/Makefile.am22
-rw-r--r--Build/source/texk/kpathsea/man/Makefile.in13
3 files changed, 19 insertions, 20 deletions
diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog
index 2f4210ee945..12d5ea1ea62 100644
--- a/Build/source/texk/kpathsea/ChangeLog
+++ b/Build/source/texk/kpathsea/ChangeLog
@@ -1,3 +1,7 @@
+2011-02-08 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * man/Makefile.am: Use ../am/man1_links.am for manpage links.
+
2011-02-02 Karl Berry <karl@tug.org>
* texmf.cnf (TEXMFROOT): new variable, $SELFAUTOPARENT by default,
diff --git a/Build/source/texk/kpathsea/man/Makefile.am b/Build/source/texk/kpathsea/man/Makefile.am
index 6a929764624..f5860ec1bd3 100644
--- a/Build/source/texk/kpathsea/man/Makefile.am
+++ b/Build/source/texk/kpathsea/man/Makefile.am
@@ -1,6 +1,6 @@
## Makefile.am for the TeX Live subdirectory texk/kpathsea/man/
##
-## Copyright (C) 2009 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.
##
man_sources = \
@@ -23,19 +23,9 @@ include $(top_srcdir)/../am/man.am
man1_links = \
mktexlsr:texhash
-install-data-hook:
- @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-hook:
- @for s in $(man1_links); do \
- link=`echo $$s | sed 's,.*:,,'`; \
- rm -f $(DESTDIR)$(man1dir)/$$link.1; \
- done
+include $(top_srcdir)/../am/man1_links.am
+
+install-data-hook: install-man1-links
+
+uninstall-hook:uninstall-man1-links
diff --git a/Build/source/texk/kpathsea/man/Makefile.in b/Build/source/texk/kpathsea/man/Makefile.in
index 6b2c11bcb1a..a7d67a63091 100644
--- a/Build/source/texk/kpathsea/man/Makefile.in
+++ b/Build/source/texk/kpathsea/man/Makefile.in
@@ -34,7 +34,7 @@ POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
- $(top_srcdir)/../am/man.am
+ $(top_srcdir)/../am/man.am $(top_srcdir)/../am/man1_links.am
subdir = man
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/../../m4/kpse-common.m4 \
@@ -228,7 +228,7 @@ all: all-am
.SUFFIXES:
.SUFFIXES: .1 .man .ps .dvi
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/../am/man.am $(am__configure_deps)
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/../am/man.am $(top_srcdir)/../am/man1_links.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
@@ -498,8 +498,9 @@ sedscript: $(KPATHSEA_PATHS_H)/kpathsea/paths.h
.1.ps:
$(DITROFF) -Tps -man $< >$@
+.PHONY: install-man1-links uninstall-man1-links
-install-data-hook:
+install-man1-links:
@cd $(DESTDIR)$(man1dir) && \
for s in $(man1_links); do \
link=`echo $$s | sed 's,.*:,,'`; \
@@ -509,12 +510,16 @@ install-data-hook:
$(LN_S) $$file.1 $$link.1 || exit 1; \
done
-uninstall-hook:
+uninstall-man1-links:
@for s in $(man1_links); do \
link=`echo $$s | sed 's,.*:,,'`; \
rm -f $(DESTDIR)$(man1dir)/$$link.1; \
done
+install-data-hook: install-man1-links
+
+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.
.NOEXPORT: