Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/bsd.port.mk
Show First 20 Lines • Show All 4,532 Lines • ▼ Show 20 Lines | |||||
.endif | .endif | ||||
.endif | .endif | ||||
.endif | .endif | ||||
${TMPPLIST}: | ${TMPPLIST}: | ||||
@cd ${.CURDIR} && ${MAKE} generate-plist | @cd ${.CURDIR} && ${MAKE} generate-plist | ||||
.for _type in EXAMPLES DOCS | .for _type in EXAMPLES DOCS | ||||
.if !empty(_REALLY_ALL_POSSIBLE_OPTIONS:M${_type}) | |||||
.if !target(add-plist-${_type:tl}) | .if !target(add-plist-${_type:tl}) | ||||
.if defined(PORT${_type}) && !empty(PORT_OPTIONS:M${_type}) | .if defined(PORT${_type}) && !empty(PORT_OPTIONS:M${_type}) | ||||
add-plist-${_type:tl}: | add-plist-${_type:tl}: | ||||
.for x in ${PORT${_type}} | .for x in ${PORT${_type}} | ||||
@if ${ECHO_CMD} "${x}"| ${AWK} '$$1 ~ /(\*|\||\[|\]|\?|\{|\}|\$$)/ { exit 1};'; then \ | @if ${ECHO_CMD} "${x}"| ${AWK} '$$1 ~ /(\*|\||\[|\]|\?|\{|\}|\$$)/ { exit 1};'; then \ | ||||
if [ ! -e ${STAGEDIR}${${_type}DIR}/${x} ]; then \ | if [ ! -e ${STAGEDIR}${${_type}DIR}/${x} ]; then \ | ||||
${ECHO_CMD} ${${_type}DIR}/${x} >> ${TMPPLIST}; \ | ${ECHO_CMD} ${${_type}DIR}/${x} >> ${TMPPLIST}; \ | ||||
fi;fi | fi;fi | ||||
.endfor | .endfor | ||||
@${FIND} -P ${PORT${_type}:S/^/${STAGEDIR}${${_type}DIR}\//} ! -type d 2>/dev/null | \ | @${FIND} -P ${PORT${_type}:S/^/${STAGEDIR}${${_type}DIR}\//} ! -type d 2>/dev/null | \ | ||||
${SED} -ne 's,^${STAGEDIR},,p' >> ${TMPPLIST} | ${SED} -ne 's,^${STAGEDIR},,p' >> ${TMPPLIST} | ||||
.endif | |||||
.endif | .endif | ||||
.endif | .endif | ||||
.endfor | .endfor | ||||
.if !target(add-plist-data) | .if !target(add-plist-data) | ||||
.if defined(PORTDATA) | .if defined(PORTDATA) | ||||
add-plist-data: | add-plist-data: | ||||
.for x in ${PORTDATA} | .for x in ${PORTDATA} | ||||
▲ Show 20 Lines • Show All 864 Lines • Show Last 20 Lines |