In the uninstall and clean targets, remove the built/installed stamp files
authorHamish Moffatt <hamish@cloud.net.au>
Thu, 4 Sep 2008 01:05:17 +0000 (01:05 -0000)
committerHamish Moffatt <hamish@cloud.net.au>
Thu, 4 Sep 2008 01:05:17 +0000 (01:05 -0000)
so that those actions will do something if executed again.

package/Makefile.autotools.in

index 7f7d624525220f5769238f7d7df99128ff78970d..480082f8b14afab54485936392c8e67365c5635e 100644 (file)
@@ -250,13 +250,18 @@ $(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)
+       rm -f $(@D)/.stamp_staging_installed
        -$($(PKG)_MAKE_ENV) $(MAKE)  $($(PKG)_UNINSTALL_TARGET_OPT) -C $(@D)/$($(PKG)_SUBDIR)
+       rm -f $(@D)/.stamp_target_installed
        -$($(PKG)_MAKE_ENV) $(MAKE)  $($(PKG)_CLEAN_OPT) -C $(@D)/$($(PKG)_SUBDIR)
+       rm -f $(@D)/.stamp_built
 
 $(BUILD_DIR)/%/.stamp_uninstalled:
        $(call MESSAGE,"Uninstalling")
        $($(PKG)_MAKE_ENV) $(MAKE) $($(PKG)_UNINSTALL_STAGING_OPT) -C $(@D)/$($(PKG)_SUBDIR)
+       rm -f $(@D)/.stamp_staging_installed
        $($(PKG)_MAKE_ENV) $(MAKE) $($(PKG)_UNINSTALL_TARGET_OPT) -C $(@D)/$($(PKG)_SUBDIR)
+       rm -f $(@D)/.stamp_target_installed
 
 $(BUILD_DIR)/%/.stamp_dircleaned:
        rm -Rf $(@D)