1 1.11 drochner # $NetBSD: bsd.links.mk,v 1.11 2000/02/10 18:18:02 drochner Exp $ 2 1.3 mycroft 3 1.3 mycroft .PHONY: linksinstall 4 1.6 mycroft realinstall: linksinstall 5 1.1 christos 6 1.1 christos .if defined(SYMLINKS) && !empty(SYMLINKS) 7 1.1 christos linksinstall:: 8 1.11 drochner @(set ${SYMLINKS}; \ 9 1.10 mycroft echo ".include <bsd.own.mk>"; \ 10 1.1 christos while test $$# -ge 2; do \ 11 1.1 christos l=$$1; \ 12 1.1 christos shift; \ 13 1.1 christos t=${DESTDIR}$$1; \ 14 1.1 christos shift; \ 15 1.11 drochner echo "realall: $$t"; \ 16 1.1 christos echo ".PHONY: $$t"; \ 17 1.2 christos echo "$$t:"; \ 18 1.1 christos echo " @echo \"$$t -> $$l\""; \ 19 1.1 christos echo " @rm -f $$t"; \ 20 1.1 christos echo " @ln -s $$l $$t"; \ 21 1.11 drochner done; \ 22 1.11 drochner ) | ${MAKE} -f- all 23 1.1 christos .endif 24 1.1 christos .if defined(LINKS) && !empty(LINKS) 25 1.1 christos linksinstall:: 26 1.11 drochner @(set ${LINKS}; \ 27 1.10 mycroft echo ".include <bsd.own.mk>"; \ 28 1.1 christos while test $$# -ge 2; do \ 29 1.1 christos l=${DESTDIR}$$1; \ 30 1.1 christos shift; \ 31 1.1 christos t=${DESTDIR}$$1; \ 32 1.1 christos shift; \ 33 1.11 drochner echo "realall: $$t"; \ 34 1.1 christos echo ".PHONY: $$t"; \ 35 1.7 mycroft echo "$$t:"; \ 36 1.1 christos echo " @echo \"$$t -> $$l\""; \ 37 1.1 christos echo " @rm -f $$t"; \ 38 1.1 christos echo " @ln $$l $$t"; \ 39 1.11 drochner done; \ 40 1.11 drochner ) | ${MAKE} -f- all 41 1.1 christos .endif 42 1.1 christos 43 1.1 christos .if !target(linksinstall) 44 1.1 christos linksinstall: 45 1.1 christos .endif 46