Commit 239181f8 authored by Peter Korsgaard's avatar Peter Korsgaard
Browse files

file: use new-style target override for uninstall



As suggested by Thomas.

Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent 133a3f90
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -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))