xsfbs.mk: don't use a directory as a make target

The timestamp on the directory gets updated each time a file is added in
it, which causes useless rebuilds.
This commit is contained in:
Julien Cristau 2010-04-13 14:06:33 +02:00
parent 734e3b2d1d
commit 8bd2e9b523
1 changed files with 7 additions and 6 deletions

13
debian/xsfbs/xsfbs.mk vendored
View File

@ -110,14 +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)/log $(STAMP_DIR)/genscripts $(STAMP_DIR)/prepare: $(STAMP_DIR)/logdir $(STAMP_DIR)/genscripts
>$@ >$@
.PHONY: log .PHONY: logdir
stampdir_targets+=log stampdir_targets+=logdir
log: $(STAMP_DIR)/log logdir: $(STAMP_DIR)/logdir
$(STAMP_DIR)/log: $(STAMP_DIR)/stampdir $(STAMP_DIR)/logdir: $(STAMP_DIR)/stampdir
mkdir -p $(STAMP_DIR)/log mkdir -p $(STAMP_DIR)/log
>$@
# Apply all patches to the upstream source. # Apply all patches to the upstream source.
.PHONY: patch .PHONY: patch
@ -145,7 +146,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)/log unpatch: $(STAMP_DIR)/logdir
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 \