Makefile.autotools.in: Do uninstall in staging/target dirs on -clean
authorPeter Korsgaard <jacmet@sunsite.dk>
Tue, 1 Apr 2008 10:30:32 +0000 (10:30 -0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 1 Apr 2008 10:30:32 +0000 (10:30 -0000)
package/Makefile.autotools.in

index 1243c352219b51b1569a6434aa8301ddfd154614..492d4497d1ee0162a3649936feb8888579fffa26 100644 (file)
@@ -234,6 +234,8 @@ $(BUILD_DIR)/%/.stamp_target_installed:
 
 $(BUILD_DIR)/%/.stamp_cleaned:
        $(call MESSAGE,"Cleaning up")
+       -$($(PKG)_MAKE_ENV) $(MAKE)  $($(PKG)_UNINSTALL_STAGING_OPT) -C $(@D)/$($(PKG)_SUBDIR)
+       -$($(PKG)_MAKE_ENV) $(MAKE)  $($(PKG)_UNINSTALL_TARGET_OPT) -C $(@D)/$($(PKG)_SUBDIR)
        -$($(PKG)_MAKE_ENV) $(MAKE)  $($(PKG)_CLEAN_OPT) -C $(@D)/$($(PKG)_SUBDIR)
 
 $(BUILD_DIR)/%/.stamp_uninstalled: