summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-10-03 20:45:38 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2009-10-03 20:52:16 (GMT)
commitc3bb9c1cc4e86367ced83f9f7117541172f5570b (patch)
tree188b66a2cd7a0e6f82bd478ebd03dbe8ee600b42
parent58508f39cc9afba83adf230bdad5a38c8dca62a9 (diff)
downloadbuildroot-c3bb9c1cc4e86367ced83f9f7117541172f5570b.tar.gz
buildroot-c3bb9c1cc4e86367ced83f9f7117541172f5570b.tar.bz2
shared-mime-info: create post-install-hook stamp file
Ensures that the hook isn't run every time. Also use the real stamp file from the host build instead of host-share-mime-info as dependency, as otherwise the target is always considered out-of-date. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/shared-mime-info/shared-mime-info.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/shared-mime-info/shared-mime-info.mk b/package/shared-mime-info/shared-mime-info.mk
index 3818f47..48895e0 100644
--- a/package/shared-mime-info/shared-mime-info.mk
+++ b/package/shared-mime-info/shared-mime-info.mk
@@ -66,6 +66,7 @@ host-shared-mime-info-dirclean:
rm -rf $(SHARED_MIME_INFO_HOST_DIR)
# update the shared-mime-info database in the target
-$(SHARED_MIME_INFO_HOOK_POST_INSTALL): host-shared-mime-info
+$(SHARED_MIME_INFO_HOOK_POST_INSTALL): $(STAMP_DIR)/host_shared-mime-info_installed
$(SHARED_MIME_INFO_HOST_BINARY) $(STAGING_DIR)/usr/share/mime
$(INSTALL) -D $(STAGING_DIR)/usr/share/mime/mime.cache $(TARGET_DIR)/usr/share/mime/mime.cache
+ touch $@