Eliminate duplicate `afterinstallconfigs` target
authorEnji Cooper <ngie@FreeBSD.org>
Thu, 1 Oct 2020 16:37:49 +0000 (16:37 +0000)
committerEnji Cooper <ngie@FreeBSD.org>
Thu, 1 Oct 2020 16:37:49 +0000 (16:37 +0000)
commitc9d175ea908f26e19afd4e1168c61f4f2a54c998
tree47bf21a014c573e5355c59d3c597e7d3018b8756
parentd213476d1cb7a0266812395a6b7a143c912f5aa3
Eliminate duplicate `afterinstallconfigs` target

Define separate dependent targets which `afterinstallconfigs` relies on, in
order to modify `${DESTDIR}/etc/master.passwd` and
`${DESTDIR}/etc/nsswitch.conf`.

Mark these targets .PHONY, since they manipulate configurations on the fly and
the generation logic isn't 100% defined in terms of the source files/logic,
and is variable, based on MK_foo flags.

MFC after: 2 weeks
Reviewed by: bapt, brd
Differential Revision: https://reviews.freebsd.org/D20330
lib/libc/gen/Makefile.inc
lib/libc/net/Makefile.inc