summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2010-06-09 08:53:56 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2010-06-09 08:53:56 +0200
commit239181f865e8b6fa286264b190c0b89796fdd19e (patch)
tree164536b8295f4050a91ec214ebdc6b5f9cba88f2 /package
parent133a3f90ba01f76568a8b8dec39fd5cf158dd494 (diff)
downloadbuildroot-novena-239181f865e8b6fa286264b190c0b89796fdd19e.tar.gz
buildroot-novena-239181f865e8b6fa286264b190c0b89796fdd19e.zip
file: use new-style target override for uninstall
As suggested by Thomas. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package')
-rw-r--r--package/file/file.mk11
1 files changed, 5 insertions, 6 deletions
diff --git a/package/file/file.mk b/package/file/file.mk
index 11fe05a85..c4f97091e 100644
--- a/package/file/file.mk
+++ b/package/file/file.mk
@@ -10,11 +10,10 @@ FILE_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
FILE_DEPENDENCIES = host-file zlib
HOST_FILE_DEPENDENCIES = host-zlib
-$(eval $(call AUTOTARGETS,package,file))
-$(eval $(call AUTOTARGETS,package,file,host))
-
-$(FILE_TARGET_UNINSTALL):
- $(call MESSAGE,"Uninstalling")
+define FILE_UNINSTALL_TARGET_CMDS
$(MAKE) DESTDIR=$(TARGET_DIR) uninstall -C $(FILE_DIR)
rm -f $(TARGET_DIR)/usr/lib/libmagic.*
- rm -f $(FILE_TARGET_INSTALL_TARGET) $(FILE_HOOK_POST_INSTALL)
+endef
+
+$(eval $(call AUTOTARGETS,package,file))
+$(eval $(call AUTOTARGETS,package,file,host))