xsfbs.mk: make 'log' a separate target
'prepare' runs genscripts, and we don't want that in unpatch, so create stampdir/log in a separate target, and make unpatch depend on that instead of prepare.
This commit is contained in:
parent
50619e730f
commit
86e7669f5d
|
@ -110,10 +110,15 @@ $(STAMP_DIR)/stampdir:
|
||||||
.PHONY: prepare
|
.PHONY: prepare
|
||||||
stampdir_targets+=prepare
|
stampdir_targets+=prepare
|
||||||
prepare: $(STAMP_DIR)/prepare
|
prepare: $(STAMP_DIR)/prepare
|
||||||
$(STAMP_DIR)/prepare: $(STAMP_DIR)/stampdir $(STAMP_DIR)/genscripts
|
$(STAMP_DIR)/prepare: $(STAMP_DIR)/log $(STAMP_DIR)/genscripts
|
||||||
mkdir -p $(STAMP_DIR)/log
|
|
||||||
>$@
|
>$@
|
||||||
|
|
||||||
|
.PHONY: log
|
||||||
|
stampdir_targets+=log
|
||||||
|
log: $(STAMP_DIR)/log
|
||||||
|
$(STAMP_DIR)/log: $(STAMP_DIR)/stampdir
|
||||||
|
mkdir -p $(STAMP_DIR)/log
|
||||||
|
|
||||||
# Apply all patches to the upstream source.
|
# Apply all patches to the upstream source.
|
||||||
.PHONY: patch
|
.PHONY: patch
|
||||||
stampdir_targets+=patch
|
stampdir_targets+=patch
|
||||||
|
@ -140,7 +145,7 @@ $(STAMP_DIR)/patch: $(STAMP_DIR)/prepare
|
||||||
|
|
||||||
# Revert all patches to the upstream source.
|
# Revert all patches to the upstream source.
|
||||||
.PHONY: unpatch
|
.PHONY: unpatch
|
||||||
unpatch: $(STAMP_DIR)/prepare
|
unpatch: $(STAMP_DIR)/log
|
||||||
rm -f $(STAMP_DIR)/patch
|
rm -f $(STAMP_DIR)/patch
|
||||||
@echo -n "Unapplying patches..."; \
|
@echo -n "Unapplying patches..."; \
|
||||||
if $(QUILT) applied >/dev/null 2>/dev/null; then \
|
if $(QUILT) applied >/dev/null 2>/dev/null; then \
|
||||||
|
|
Loading…
Reference in New Issue