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