1 # $Id: links.mk,v 1.6 2014/09/29 17:14:40 sjg Exp $
3 # @(#) Copyright (c) 2005, Simon J. Gerraty
5 # This file is provided in the hope that it will
6 # be of use. There is absolutely NO WARRANTY.
7 # Permission to copy, redistribute or otherwise
8 # use this file is hereby granted provided that
9 # the above copyright notice and this notice are
12 # Please send copies of changes and bug-fixes to:
16 # some platforms need something special
24 ${ECHO} "$$t -> $$l"; \
25 case
`'ls' -l $$t 2> /dev/null` in \
28 mkdir
-p
`dirname $$t`; \
35 ${ECHO} "$$t -> $$l"; \
36 mkdir
-p
`dirname $$t`; \
41 while
test $$\
# -ge 2; do \
43 t
=${DESTDIR}$$1; shift
; \
44 ${__SYMLINK_SCRIPT}; \
48 while
test $$\
# -ge 2; do \
49 l
=${DESTDIR}$$1; shift
; \
50 t
=${DESTDIR}$$1; shift
; \
55 @set
${$@_SYMLINKS
:U
${SYMLINKS}}; ${_SYMLINKS_SCRIPT}
58 @set
${$@_LINKS
:U
${LINKS}}; ${_LINKS_SCRIPT}
61 # sometimes we want to ensure DESTDIR is ignored
62 _BUILD_SYMLINKS_SCRIPT
= \
63 while
test $$\
# -ge 2; do \
66 ${__SYMLINK_SCRIPT}; \
69 _BUILD_LINKS_SCRIPT
= \
70 while
test $$\
# -ge 2; do \
76 _BUILD_SYMLINKS_USE
: .USE
77 @set
${$@_SYMLINKS
:U
${SYMLINKS}}; ${_BUILD_SYMLINKS_SCRIPT}
79 _BUILD_LINKS_USE
: .USE
80 @set
${$@_LINKS
:U
${LINKS}}; ${_BUILD_LINKS_SCRIPT}