make-rules/prep.mk
changeset 38 cd00ea74156e
parent 34 d20b10eba317
child 42 566ce4d2ff99
equal deleted inserted replaced
37:988ea0021850 38:cd00ea74156e
    34 
    34 
    35 $(COMPONENT_SRC)/.%ed:	%
    35 $(COMPONENT_SRC)/.%ed:	%
    36 	$(GPATCH) -d $(@D) $(GPATCH_FLAGS) < $<
    36 	$(GPATCH) -d $(@D) $(GPATCH_FLAGS) < $<
    37 	$(TOUCH) $@
    37 	$(TOUCH) $@
    38 
    38 
    39 $(COMPONENT_ARCHIVE):
    39 $(COMPONENT_ARCHIVE):	Makefile
    40 	$(FETCH) --file $@ \
    40 	$(FETCH) --file $@ \
    41 		$(COMPONENT_ARCHIVE_URL:%=--url %) \
    41 		$(COMPONENT_ARCHIVE_URL:%=--url %) \
    42 		$(COMPONENT_ARCHIVE_HASH:%=--hash %)
    42 		$(COMPONENT_ARCHIVE_HASH:%=--hash %)
       
    43 	$(TOUCH) $@
    43 
    44 
    44 $(COMPONENT_SRC)/.unpacked:	$(COMPONENT_ARCHIVE)
    45 $(COMPONENT_SRC)/.unpacked:	$(COMPONENT_ARCHIVE) Makefile $(PATCHES)
       
    46 	$(RM) -r $(COMPONENT_SRC)
    45 	$(UNPACK) $(UNPACK_ARGS) $(COMPONENT_ARCHIVE)
    47 	$(UNPACK) $(UNPACK_ARGS) $(COMPONENT_ARCHIVE)
    46 	$(TOUCH) $@
    48 	$(TOUCH) $@
    47 
    49 
    48 $(COMPONENT_SRC)/.patched:	$(COMPONENT_SRC)/.unpacked $(STAMPS)
    50 $(COMPONENT_SRC)/.patched:	$(COMPONENT_SRC)/.unpacked $(STAMPS)
    49 	$(TOUCH) $@
    51 	$(TOUCH) $@