1 # $Id: links.mk,v 1.5 2005/07/11 18:01:05 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 mkdir -p `dirname $$t`; \
30 ${ECHO} "$$t -> $$l"; \
31 mkdir -p `dirname $$t`; \
36 while test $$\# -ge 2; do \
38 t=${DESTDIR}$$1; shift; \
39 ${__SYMLINK_SCRIPT}; \
43 while test $$\# -ge 2; do \
44 l=${DESTDIR}$$1; shift; \
45 t=${DESTDIR}$$1; shift; \
50 @set ${$@_SYMLINKS:U${SYMLINKS}}; ${_SYMLINKS_SCRIPT}
53 @set ${$@_LINKS:U${LINKS}}; ${_LINKS_SCRIPT}
56 # sometimes we want to ensure DESTDIR is ignored
57 _BUILD_SYMLINKS_SCRIPT= \
58 while test $$\# -ge 2; do \
61 ${__SYMLINK_SCRIPT}; \
64 _BUILD_LINKS_SCRIPT= \
65 while test $$\# -ge 2; do \
71 _BUILD_SYMLINKS_USE: .USE
72 @set ${$@_SYMLINKS:U${SYMLINKS}}; ${_BUILD_SYMLINKS_SCRIPT}
74 _BUILD_LINKS_USE: .USE
75 @set ${$@_LINKS:U${LINKS}}; ${_BUILD_LINKS_SCRIPT}