summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-10-30 18:49:51 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-10-30 18:49:51 (GMT)
commit01240b9fbf60510a098975fd8d74b908ec2cde45 (patch)
tree49bad1c173dbb916e41a46d68d4dd798d953fb52
parentde8f2cea32f14099cf756cbef40d312ffd1894a8 (diff)
scripts: fix updating config.{sub,guess}
-rw-r--r--ct-ng.in5
-rw-r--r--samples/samples.mk2
-rw-r--r--scripts/scripts.mk6
3 files changed, 6 insertions, 7 deletions
diff --git a/ct-ng.in b/ct-ng.in
index 1e23cae..8a60431 100644
--- a/ct-ng.in
+++ b/ct-ng.in
@@ -56,10 +56,11 @@ ifeq ($(strip $(origin V)),command line)
endif # origin V
export V SILENT ECHO
-.FORCE: $(FORCE)
+all: help
+
.PHONY: $(PHONY)
PHONY += all
-all: help
+FORCE:
# Help system
help:: help-head help-config help-samples help-build help-clean help-distrib help-env help-tail
diff --git a/samples/samples.mk b/samples/samples.mk
index 6052ae9..bc769ab 100644
--- a/samples/samples.mk
+++ b/samples/samples.mk
@@ -38,7 +38,7 @@ $(patsubst %,show-%,$(CT_SAMPLES)):
# print the list of all available samples
PHONY += list-samples
-list-samples: .FORCE
+list-samples: FORCE
@echo $(CT_SAMPLES) |$(sed) -r -e 's/ /\n/g;' |sort
wiki-samples:
diff --git a/scripts/scripts.mk b/scripts/scripts.mk
index ebb05e4..7b21540 100644
--- a/scripts/scripts.mk
+++ b/scripts/scripts.mk
@@ -35,14 +35,12 @@ PHONY += scripts
scripts:
$(SILENT)mkdir -p scripts
-FROCE += $(CONFIG_SUB_DEST)
-$(CONFIG_SUB_DEST): scripts
+$(CONFIG_SUB_DEST): scripts FORCE
@$(ECHO) ' WGET $@'
$(SILENT)wget $(wget_opt) -O $@ $(CONFIG_SUB_SRC)
$(SILENT)chmod u+rwx,go+rx-w $@
-FORCE += $(CONFIG_GUESS_DEST)
-$(CONFIG_GUESS_DEST): scripts
+$(CONFIG_GUESS_DEST): scripts FORCE
@$(ECHO) ' WGET $@'
$(SILENT)wget $(wget_opt) -O $@ $(CONFIG_GUESS_SRC)
$(SILENT)chmod u+rwx,go+rx-w $@