blob: c9f6eb3f73a14d33438fff9e7cfcaf38afe70e86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Copyright (c) 2009-2013 by Aleksey Cheusov
#
# See LICENSE file in the distribution.
############################################################
.if !defined(_MKC_IMP_LINKS_MK)
_MKC_IMP_LINKS_MK := 1
.PHONY: linksinstall
linksinstall:
realinstall2: linksinstall
.if ${MKINSTALL:tl} == "yes"
linksinstall:
.for l r in ${LINKS}
${RM} -f ${DESTDIR}${r}; ${LN} ${DESTDIR}${l} ${DESTDIR}${r}
.endfor
.for l r in ${SYMLINKS}
${RM} -f ${DESTDIR}${r}; ${LN_S} ${l} ${DESTDIR}${r}
.endfor
.for l r in ${LINKS}
UNINSTALLFILES += ${DESTDIR}${r}
INSTALLDIRS += ${DESTDIR}${r:H}
.endfor
.for l r in ${SYMLINKS}
UNINSTALLFILES += ${DESTDIR}${r}
INSTALLDIRS += ${DESTDIR}${r:H}
.endfor
.endif # MKINSTALL=yes
.endif # _MKC_IMP_LINKS_MK
|