PageRenderTime 19ms CodeModel.GetById 12ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/share/mk/bsd.links.mk

https://bitbucket.org/freebsd/freebsd-head/
Makefile | 31 lines | 28 code | 2 blank | 1 comment | 4 complexity | d767e1f9864a490d60208ec293426cea MD5 | raw file
 1# $FreeBSD$
 2
 3.if !target(__<bsd.init.mk>__)
 4.error bsd.links.mk cannot be included directly.
 5.endif
 6
 7afterinstall: _installlinks
 8.ORDER: realinstall _installlinks
 9_installlinks:
10.if defined(LINKS) && !empty(LINKS)
11	@set ${LINKS}; \
12	while test $$# -ge 2; do \
13		l=${DESTDIR}$$1; \
14		shift; \
15		t=${DESTDIR}$$1; \
16		shift; \
17		${ECHO} $$t -\> $$l; \
18		ln -f $$l $$t; \
19	done; true
20.endif
21.if defined(SYMLINKS) && !empty(SYMLINKS)
22	@set ${SYMLINKS}; \
23	while test $$# -ge 2; do \
24		l=$$1; \
25		shift; \
26		t=${DESTDIR}$$1; \
27		shift; \
28		${ECHO} $$t -\> $$l; \
29		ln -fs $$l $$t; \
30	done; true
31.endif