summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Kehn <rdkehn@yahoo.com>2014-11-28 09:25:04 -0600
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-02-03 18:05:21 +0100
commitb7bc44d22d0fddde7c964a2fd259775ea8d0bf9f (patch)
treef04bd9899bca8ca135a5db346d54d327cd33a8b2
parent2aaa5bd7b1fcd3c152cd138d7d68ac46a5188413 (diff)
downloadbuildroot-b7bc44d22d0fddde7c964a2fd259775ea8d0bf9f.tar.gz
buildroot-b7bc44d22d0fddde7c964a2fd259775ea8d0bf9f.zip
pkg-generic: reinstall target
Add a <pkg>-reinstall target, just like <pkg>-rebuild and <pkg>-reconfigure, but that only retrigger the install step of the package. Signed-off-by: Doug Kehn <rdkehn@yahoo.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/pkg-generic.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
index 38ef581a0f..1b09955631 100644
--- a/package/pkg-generic.mk
+++ b/package/pkg-generic.mk
@@ -577,16 +577,20 @@ $(1)-graph-depends: graph-depends-requirements
$(1)-dirclean: $$($(2)_TARGET_DIRCLEAN)
-$(1)-clean-for-rebuild:
+$(1)-clean-for-reinstall:
ifneq ($$($(2)_OVERRIDE_SRCDIR),)
rm -f $$($(2)_TARGET_RSYNC)
endif
- rm -f $$($(2)_TARGET_BUILD)
rm -f $$($(2)_TARGET_INSTALL_STAGING)
rm -f $$($(2)_TARGET_INSTALL_TARGET)
rm -f $$($(2)_TARGET_INSTALL_IMAGES)
rm -f $$($(2)_TARGET_INSTALL_HOST)
+$(1)-reinstall: $(1)-clean-for-reinstall $(1)
+
+$(1)-clean-for-rebuild: $(1)-clean-for-reinstall
+ rm -f $$($(2)_TARGET_BUILD)
+
$(1)-rebuild: $(1)-clean-for-rebuild $(1)
$(1)-clean-for-reconfigure: $(1)-clean-for-rebuild
OpenPOWER on IntegriCloud