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
stampdir_targets+=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
stampdir_targets+=log
log: $(STAMP_DIR)/log
$(STAMP_DIR)/log: $(STAMP_DIR)/stampdir
.PHONY: logdir
stampdir_targets+=logdir
logdir: $(STAMP_DIR)/logdir
$(STAMP_DIR)/logdir: $(STAMP_DIR)/stampdir
mkdir -p $(STAMP_DIR)/log
>$@
# Apply all patches to the upstream source.
.PHONY: patch
@ -145,7 +146,7 @@ $(STAMP_DIR)/patch: $(STAMP_DIR)/prepare
# Revert all patches to the upstream source.
.PHONY: unpatch
unpatch: $(STAMP_DIR)/log
unpatch: $(STAMP_DIR)/logdir
rm -f $(STAMP_DIR)/patch
@echo -n "Unapplying patches..."; \
if $(QUILT) applied >/dev/null 2>/dev/null; then \