1 ## am/man1_links.am: Makefile fragment for manual page links.
3 ## Copyright (C) 2011-2013 Peter Breitenlohner <tex-live@tug.org>
4 ## You may freely use, modify and/or distribute this file.
6 ## requires $(man1_links)
7 ## Symlinks within $(man1dir): FILE:LINK indicates LINK.1->FILE.1
8 .PHONY: install-man1-links uninstall-man1-links
11 @cd $(DESTDIR)$(man1dir) && \
12 for s in $(man1_links); do \
13 link=`echo $$s | sed 's,.*:,,'`; \
14 file=`echo $$s | sed 's,:.*,,'`; \
16 echo "creating link '$$link.1' -> '$$file.1'"; \
17 echo ".so man1/$$file.1" >$$link.1; \
21 @for s in $(man1_links); do \
22 link=`echo $$s | sed 's,.*:,,'`; \
23 rm -f $(DESTDIR)$(man1dir)/$$link.1; \