mk: Set the DIR tags based on the files one

Otherwise we loose the info as we use bsd.dirs.mk for creating directories.

Reviewed by:	bapt
Differential Revision:	https://reviews.freebsd.org/D27712
This commit is contained in:
Emmanuel Vadot 2020-12-21 23:20:28 +01:00 committed by Emmanuel Vadot
parent a22cde7c02
commit 735a585e80

View File

@ -53,10 +53,12 @@ ${group}TAG_ARGS= -T ${${group}TAGS:[*]:S/ /,/g}
.if ${${group}DIR:S/^\///} == ${${group}DIR}
# ${group}DIR specifies a variable that specifies a path
DIRS+= ${${group}DIR}
${group}DIRTAGS= ${group}TAGS
_${group}DIR= ${${group}DIR}
.else
# ${group}DIR specifies a path
DIRS+= ${group}DIR
${group}DIRTAGS= ${${group}TAGS}
_${group}DIR= ${group}DIR
.endif