pkg/pkg.mk: silent prepare target when there's nothing to be done

This commit is contained in:
Alexandre Abadie 2020-06-16 14:01:58 +02:00
parent 25c609f2d3
commit b87898df5e
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -53,7 +53,10 @@ PKG_DOWNLOADED = $(PKG_STATE)-downloaded
# Declare 'all' first to have it being the default target # Declare 'all' first to have it being the default target
all: $(PKG_PREPARED) all: $(PKG_PREPARED)
# Add noop builtin to avoid "Nothing to be done for prepare" message
prepare: $(PKG_PREPARED) prepare: $(PKG_PREPARED)
@:
# Allow packages to add a custom step to be `prepared`. # Allow packages to add a custom step to be `prepared`.
# It should be a dependency of `$(PKG_PREPARED)` and depend on `$(PKG_PATCHED)` # It should be a dependency of `$(PKG_PREPARED)` and depend on `$(PKG_PATCHED)`