1997-05-10 14:55:19 +04:00
|
|
|
# $NetBSD: bsd.links.mk,v 1.7 1997/05/10 10:55:19 mycroft Exp $
|
1997-05-07 00:54:31 +04:00
|
|
|
|
|
|
|
.PHONY: linksinstall
|
1997-05-09 17:25:46 +04:00
|
|
|
realinstall: linksinstall
|
1997-03-25 00:54:12 +03:00
|
|
|
|
|
|
|
.if defined(SYMLINKS) && !empty(SYMLINKS)
|
|
|
|
linksinstall::
|
|
|
|
@set ${SYMLINKS}; \
|
|
|
|
while test $$# -ge 2; do \
|
|
|
|
l=$$1; \
|
|
|
|
shift; \
|
|
|
|
t=${DESTDIR}$$1; \
|
|
|
|
shift; \
|
|
|
|
echo ".include <bsd.own.mk>"; \
|
|
|
|
echo "all:: $$t"; \
|
|
|
|
echo ".PHONY: $$t"; \
|
1997-03-28 18:07:28 +03:00
|
|
|
echo "$$t:"; \
|
1997-03-25 00:54:12 +03:00
|
|
|
echo " @echo \"$$t -> $$l\""; \
|
|
|
|
echo " @rm -f $$t"; \
|
|
|
|
echo " @ln -s $$l $$t"; \
|
1997-05-10 14:55:19 +04:00
|
|
|
done | make -f-
|
1997-03-25 00:54:12 +03:00
|
|
|
.endif
|
|
|
|
.if defined(LINKS) && !empty(LINKS)
|
|
|
|
linksinstall::
|
|
|
|
@set ${LINKS}; \
|
|
|
|
while test $$# -ge 2; do \
|
|
|
|
l=${DESTDIR}$$1; \
|
|
|
|
shift; \
|
|
|
|
t=${DESTDIR}$$1; \
|
|
|
|
shift; \
|
|
|
|
echo ".include <bsd.own.mk>"; \
|
|
|
|
echo "all:: $$t"; \
|
|
|
|
echo ".PHONY: $$t"; \
|
1997-05-10 14:55:19 +04:00
|
|
|
echo "$$t:"; \
|
1997-03-25 00:54:12 +03:00
|
|
|
echo " @echo \"$$t -> $$l\""; \
|
|
|
|
echo " @rm -f $$t"; \
|
|
|
|
echo " @ln $$l $$t"; \
|
1997-05-10 14:55:19 +04:00
|
|
|
done | make -f-
|
1997-03-25 00:54:12 +03:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !target(linksinstall)
|
|
|
|
linksinstall:
|
|
|
|
.endif
|