diff --git a/include/package.mk b/include/package.mk
index 7af7420395ac89d98e42cdc63f5114201f7098bf..e0765f7baba31a2ee26a53a7abb6636c15b9cae9 100644
--- a/include/package.mk
+++ b/include/package.mk
@@ -220,7 +220,7 @@ define BuildPackage
 
   clean: $(1)-clean
 
-  $(PKG_BUILD_DIR)/.version-$(1)_$(VERSION)_$(PKGARCH):
+  $(PKG_BUILD_DIR)/.version-$(1)_$(VERSION)_$(PKGARCH): $(PKG_BUILD_DIR)/.prepared
 	-rm $(PKG_BUILD_DIR)/.version-$(1)_*
 	@touch $$@