make-rules/prep.mk
changeset 38 cd00ea74156e
parent 34 d20b10eba317
child 42 566ce4d2ff99
--- a/make-rules/prep.mk	Fri Oct 15 16:14:01 2010 -0500
+++ b/make-rules/prep.mk	Fri Oct 15 16:15:38 2010 -0500
@@ -36,12 +36,14 @@
 	$(GPATCH) -d $(@D) $(GPATCH_FLAGS) < $<
 	$(TOUCH) [email protected]
 
-$(COMPONENT_ARCHIVE):
+$(COMPONENT_ARCHIVE):	Makefile
 	$(FETCH) --file [email protected] \
 		$(COMPONENT_ARCHIVE_URL:%=--url %) \
 		$(COMPONENT_ARCHIVE_HASH:%=--hash %)
+	$(TOUCH) [email protected]
 
-$(COMPONENT_SRC)/.unpacked:	$(COMPONENT_ARCHIVE)
+$(COMPONENT_SRC)/.unpacked:	$(COMPONENT_ARCHIVE) Makefile $(PATCHES)
+	$(RM) -r $(COMPONENT_SRC)
 	$(UNPACK) $(UNPACK_ARGS) $(COMPONENT_ARCHIVE)
 	$(TOUCH) [email protected]