Commit e7895986 authored by Peter Korsgaard's avatar Peter Korsgaard
Browse files

sdl_sound: cleanup uninstall handling



SDL_SOUND_SUBDIR doesn't exist, so the staging uninstall handling is
equivalent to the default one.

Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent 1860bdae
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -49,14 +49,10 @@ ifneq ($(BR2_PACKAGE_SDL_SOUND_PLAYSOUND),y)
SDL_SOUND_POST_INSTALL_TARGET_HOOKS += SDL_SOUND_REMOVE_PLAYSOUND
endif

define SDL_SOUND_UNINSTALL_STAGING_CMDS
	$(MAKE) DESTDIR=$(STAGING_DIR) uninstall -C $(@D)/$(SDL_SOUND_SUBDIR)
endef

# target shared libs doesn't get removed by make uninstall if the .la
# files are removed (E.G. if BR2_HAVE_DEVFILES isn't set)
define SDL_SOUND_UNINSTALL_TARGET_CMDS
	$(MAKE) DESTDIR=$(TARGET_DIR) uninstall -C $(@D)/$(SDL_SOUND_SUBDIR)
	$(MAKE) DESTDIR=$(TARGET_DIR) uninstall -C $(@D)
	rm -f $(TARGET_DIR)/usr/lib/libSDL_sound*so*
endef