Changeset View
Changeset View
Standalone View
Standalone View
head/share/mk/bsd.files.mk
Show First 20 Lines • Show All 103 Lines • ▼ Show 20 Lines | |||||
STAGE_AS_${file}= ${${group}NAME_${file}} | STAGE_AS_${file}= ${${group}NAME_${file}} | ||||
# we cannot use file safely as a set name | # we cannot use file safely as a set name | ||||
# since we cannot? apply :T | # since we cannot? apply :T | ||||
# but we can use the ${group}DIR_${file} | # but we can use the ${group}DIR_${file} | ||||
# as a set - meta.stage.mk will :O:u for us | # as a set - meta.stage.mk will :O:u for us | ||||
# we need to expand ${group}DIR_${file} and replace | # we need to expand ${group}DIR_${file} and replace | ||||
# all '/' and '*' with '_' to make a safe target name. | # all '/' and '*' with '_' to make a safe target name. | ||||
STAGE_AS_SETS+= ${${_${group}DIR_${file}}:C,[/*],_,g} | STAGE_AS_SETS+= ${${_${group}DIR_${file}}:C,[/*],_,g} | ||||
STAGE_DIR.${${_${group}DIR_${file}}:C,[/*],_,g}= ${STAGE_OBJTOP}${${group}DIR_${file}} | STAGE_DIR.${${_${group}DIR_${file}}:C,[/*],_,g}= ${STAGE_OBJTOP}${${_${group}DIR_${file}}} | ||||
stage_as.${${_${group}DIR_${file}}:C,[/*],_,g}: ${file} | stage_as.${${_${group}DIR_${file}}:C,[/*],_,g}: ${file} | ||||
installfiles-${group}: _${group}INS1_${file} | installfiles-${group}: _${group}INS1_${file} | ||||
_${group}INS1_${file}: installdirs-${_${group}DIR_${file}} _${group}INS_${file} | _${group}INS1_${file}: installdirs-${_${group}DIR_${file}} _${group}INS_${file} | ||||
_${group}INS_${file}: ${file} | _${group}INS_${file}: ${file} | ||||
${INSTALL} ${${group}TAG_ARGS} -o ${${group}OWN_${file}} \ | ${INSTALL} ${${group}TAG_ARGS} -o ${${group}OWN_${file}} \ | ||||
-g ${${group}GRP_${file}} -m ${${group}MODE_${file}} \ | -g ${${group}GRP_${file}} -m ${${group}MODE_${file}} \ | ||||
${.ALLSRC} ${${group}PREFIX_${file}}/${${group}NAME_${file}} | ${.ALLSRC} ${${group}PREFIX_${file}}/${${group}NAME_${file}} | ||||
Show All 26 Lines |