summaryrefslogtreecommitdiff
path: root/Build/source/libs/am/hdr_links.am
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/am/hdr_links.am')
-rw-r--r--Build/source/libs/am/hdr_links.am19
1 files changed, 19 insertions, 0 deletions
diff --git a/Build/source/libs/am/hdr_links.am b/Build/source/libs/am/hdr_links.am
new file mode 100644
index 00000000000..b37a54f5904
--- /dev/null
+++ b/Build/source/libs/am/hdr_links.am
@@ -0,0 +1,19 @@
+## libs/am/hdr_links.am: Makefile fragment for header links.
+##
+## Copyright (C) 2012 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; \
+ echo "$(LN_S) $$file $$inst"; \
+ $(LN_S) $$file $$inst; } || exit 1; \
+ done
+
+distclean-local:
+ rm -f *.h
+