X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/8e7e55ae9d68f1deb619b2c46beec321a54078b0..682f9b3fa9b71d8c5707d563025bf46fea1ce246:/include/package-ipkg.mk diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk index 4409f239a..bd4e28ce3 100644 --- a/include/package-ipkg.mk +++ b/include/package-ipkg.mk @@ -59,10 +59,11 @@ ifeq ($(DUMP),) $(eval $(call BuildIPKGVariable,$(1),postrm)) $(STAGING_DIR_ROOT)/stamp/.$(1)_installed: $(STAMP_BUILT) + rm -rf $(STAGING_DIR_ROOT)/tmp-$(1) mkdir -p $(STAGING_DIR_ROOT)/stamp $(STAGING_DIR_ROOT)/tmp-$(1) $(call Package/$(1)/install,$(STAGING_DIR_ROOT)/tmp-$(1)) $(call Package/$(1)/install_lib,$(STAGING_DIR_ROOT)/tmp-$(1)) - $(CP) $(STAGING_DIR_ROOT)/tmp-$(1)/* $(STAGING_DIR_ROOT)/ + $(CP) $(STAGING_DIR_ROOT)/tmp-$(1)/. $(STAGING_DIR_ROOT)/ rm -rf $(STAGING_DIR_ROOT)/tmp-$(1) touch $$@