bsd.incs.mk (f993ed2fbd3c307200ed9a6351e649f0904b39c5) bsd.incs.mk (697b271da935866850692f7e0cb76434c4e26b13)
1# $FreeBSD$
2
3.if !target(__<bsd.init.mk>__)
4.error bsd.incs.mk cannot be included directly.
5.endif
6
7.if ${MK_INCLUDES} != "no"
8

--- 46 unchanged lines hidden (view full) ---

55STAGE_AS_${header:T}= ${${group}NAME_${header:T}}
56# XXX {group}OWN,GRP,MODE
57STAGE_DIR.${header:T}= ${STAGE_OBJTOP}${${group}DIR_${header:T}}
58stage_as.${header:T}: ${header}
59stage_includes: stage_as.${header:T}
60
61installincludes: _${group}INS_${header:T}
62_${group}INS_${header:T}: ${header}
1# $FreeBSD$
2
3.if !target(__<bsd.init.mk>__)
4.error bsd.incs.mk cannot be included directly.
5.endif
6
7.if ${MK_INCLUDES} != "no"
8

--- 46 unchanged lines hidden (view full) ---

55STAGE_AS_${header:T}= ${${group}NAME_${header:T}}
56# XXX {group}OWN,GRP,MODE
57STAGE_DIR.${header:T}= ${STAGE_OBJTOP}${${group}DIR_${header:T}}
58stage_as.${header:T}: ${header}
59stage_includes: stage_as.${header:T}
60
61installincludes: _${group}INS_${header:T}
62_${group}INS_${header:T}: ${header}
63 ${INSTALL} ${TAG_ARGS:D${TAG_ARGS},development} -C -o ${${group}OWN_${.ALLSRC:T}} \
63 ${INSTALL} ${TAG_ARGS:D${TAG_ARGS},dev} -C -o ${${group}OWN_${.ALLSRC:T}} \
64 -g ${${group}GRP_${.ALLSRC:T}} -m ${${group}MODE_${.ALLSRC:T}} \
65 ${.ALLSRC} \
66 ${DESTDIR}${${group}DIR_${.ALLSRC:T}}/${${group}NAME_${.ALLSRC:T}}
67.else
68_${group}INCS+= ${header}
69.endif
70.endfor
71.if !empty(_${group}INCS)
72stage_files.${group}: ${_${group}INCS}
73stage_includes: stage_files.${group}
74
75installincludes: _${group}INS
76_${group}INS: ${_${group}INCS}
77.if defined(${group}NAME)
64 -g ${${group}GRP_${.ALLSRC:T}} -m ${${group}MODE_${.ALLSRC:T}} \
65 ${.ALLSRC} \
66 ${DESTDIR}${${group}DIR_${.ALLSRC:T}}/${${group}NAME_${.ALLSRC:T}}
67.else
68_${group}INCS+= ${header}
69.endif
70.endfor
71.if !empty(_${group}INCS)
72stage_files.${group}: ${_${group}INCS}
73stage_includes: stage_files.${group}
74
75installincludes: _${group}INS
76_${group}INS: ${_${group}INCS}
77.if defined(${group}NAME)
78 ${INSTALL} ${TAG_ARGS:D${TAG_ARGS},development} -C -o ${${group}OWN} -g ${${group}GRP} -m ${${group}MODE} \
78 ${INSTALL} ${TAG_ARGS:D${TAG_ARGS},dev} -C -o ${${group}OWN} -g ${${group}GRP} -m ${${group}MODE} \
79 ${.ALLSRC} ${DESTDIR}${${group}DIR}/${${group}NAME}
80.else
79 ${.ALLSRC} ${DESTDIR}${${group}DIR}/${${group}NAME}
80.else
81 ${INSTALL} ${TAG_ARGS:D${TAG_ARGS},development} -C -o ${${group}OWN} -g ${${group}GRP} -m ${${group}MODE} \
81 ${INSTALL} ${TAG_ARGS:D${TAG_ARGS},dev} -C -o ${${group}OWN} -g ${${group}GRP} -m ${${group}MODE} \
82 ${.ALLSRC} ${DESTDIR}${${group}DIR}/
83.endif
84.endif
85
86.endif # defined(${group}) && !empty(${group})
87.endfor
88
89.if defined(INCSLINKS) && !empty(INCSLINKS)
90installincludes:
91.for s t in ${INCSLINKS}
82 ${.ALLSRC} ${DESTDIR}${${group}DIR}/
83.endif
84.endif
85
86.endif # defined(${group}) && !empty(${group})
87.endfor
88
89.if defined(INCSLINKS) && !empty(INCSLINKS)
90installincludes:
91.for s t in ${INCSLINKS}
92 ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},development} ${s} ${DESTDIR}${t}
92 ${INSTALL_SYMLINK} ${TAG_ARGS:D${TAG_ARGS},dev} ${s} ${DESTDIR}${t}
93.endfor
94.endif
95.endif # !target(installincludes)
96
97realinstall: installincludes
98.ORDER: beforeinstall installincludes
99
100.if ${MK_STAGING} != "no" && !defined(_SKIP_BUILD)
101.if !defined(NO_STAGE_INCLUDES)
102STAGE_TARGETS+= stage_includes
103.if !empty(INCSLINKS)
104STAGE_TARGETS+= stage_symlinks
105STAGE_SYMLINKS.INCS= ${INCSLINKS}
106.endif
107.endif
108.endif
109
110.endif # ${MK_INCLUDES} != "no"
93.endfor
94.endif
95.endif # !target(installincludes)
96
97realinstall: installincludes
98.ORDER: beforeinstall installincludes
99
100.if ${MK_STAGING} != "no" && !defined(_SKIP_BUILD)
101.if !defined(NO_STAGE_INCLUDES)
102STAGE_TARGETS+= stage_includes
103.if !empty(INCSLINKS)
104STAGE_TARGETS+= stage_symlinks
105STAGE_SYMLINKS.INCS= ${INCSLINKS}
106.endif
107.endif
108.endif
109
110.endif # ${MK_INCLUDES} != "no"