Add afterbuild target to bsd.prog.mk.

Afterbuild target allows to perform operations on fully built binary.
This is needed to allow for ELF feature flags modification during
world build.

Submitted by: Dawid Gorecki <dgr@semihalf.com>
Reviewed by: imp
Obtained from: Semihalf
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D29551
This commit is contained in:
Marcin Wojtas 2021-05-21 11:23:42 +02:00
parent 4a27bf128b
commit 7c8d38112d

View File

@ -232,7 +232,12 @@ MAN1= ${MAN}
.if defined(_SKIP_BUILD)
all:
.else
.if target(afterbuild)
.ORDER: ${PROG} afterbuild
all: ${PROG} ${SCRIPTS} afterbuild
.else
all: ${PROG} ${SCRIPTS}
.endif
.if ${MK_MAN} != "no"
all: all-man
.endif