summaryrefslogtreecommitdiff
path: root/Build/source/am/hdr_links.am
blob: 4985c32ca2a0853562e9fc6f0ba9c53bafa17d56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
## am/hdr_links.am: Makefile fragment for header links.
##
## Copyright (C) 2012-2013 Peter Breitenlohner <tex-live@tug.org>
## You may freely use, modify and/or distribute this file.
##
## requires $(hdr_links), `install' headers in the build tree.
all-local:
	@for file in $(hdr_links); do \
	  test -f $$file || continue; \
	  inst=`echo $$file | sed -e 's/^.*\///'`; \
	  test -f $$inst || { \
	    rm -f $$inst; \
	    if $(AM_V_P); then echo "$(LN_S) $$file $$inst"; \
	      else echo "  INST     $$inst"; fi; \
	    $(LN_S) $$file $$inst; } || exit 1; \
	done

distclean-local:
	rm -f *.h