Marcel Telka
2022-03-25 1d4bf32cf545ad7766bc2fdb3c9a7d09d31d1d45
ips.mk: the REQUIRED_PACKAGES target should update the list

1 files modified
9 ■■■■■ changed files
make-rules/ips.mk 9 ●●●●● patch | view | raw | blame | history
make-rules/ips.mk
@@ -506,18 +506,19 @@
REQUIRED_PACKAGES_TRANSFORM=$(foreach p,$(REQUIRED_PACKAGES_SUBST), -e 's|$($(p))|$$($(p))|')
#
# Generate a set of REQUIRED_PACKAGES based on what is needed to for pkgdepend
# to resolve properly.  Automatically append this to your Makefile for the truly
# lazy among us.  This is only a piece of the REQUIRED_PACKAGES puzzle.
# Generate a set of REQUIRED_PACKAGES based on what is needed for pkgdepend to
# resolve properly.  Automatically update the list in your Makefile for the
# truly lazy among us.  This is only a piece of the REQUIRED_PACKAGES puzzle.
# You must still include packages for tools you build and test with.
#
REQUIRED_PACKAGES::     $(RESOLVED)
    $(GMAKE) RESOLVE_DEPS= $(BUILD_DIR)/.resolved-$(MACH)
    @$(GSED) -i -e '/^# Auto-generated dependencies$$/,$$d' Makefile
    @echo "# Auto-generated dependencies" >>Makefile
    @$(PKGMOGRIFY) $(WS_TRANSFORMS)/$@ $(RESOLVED) | \
        $(GSED) -e '/^[\t ]*$$/d' -e '/^#/d' $(REQUIRED_PACKAGES_TRANSFORM) \
            | sort -u >>Makefile
    @echo "*** Please edit your Makefile and verify the new content at the end ***"
    @echo "*** Please edit your Makefile and verify the new or updated content at the end ***"
# lint the manifests all at once