commit e4a024c9a8f4561dea27bce272394518b6aec600
Author: p4u <hakais@gmail.com>
Date:   Tue Oct 25 17:15:27 2011 +0200

    Removed space from targets.mk in alix name. Added new function update_all

diff --git a/Makefile b/Makefile
index 7be34ea..5a58de8 100644
--- a/Makefile
+++ b/Makefile
@@ -61,9 +61,9 @@ define copy_config
 endef
 
 define update_feeds
-	@echo "Updateing feed $(T)"
-	./$(BUILD_DIR)/$(T)/scripts/feeds update -a
-	./$(BUILD_DIR)/$(T)/scripts/feeds install -a
+	@echo "Updating feed $(1)"
+	./$(BUILD_DIR)/$(1)/scripts/feeds update -a
+	./$(BUILD_DIR)/$(1)/scripts/feeds install -a
 endef
 
 define menuconfig_owrt
@@ -80,8 +80,8 @@ endef
 
 define post_build
 	[ ! -d $(IMAGES) ] && mkdir $(IMAGES) || true
-	cp -f $(BUILD_DIR)/$(T)/$(IMAGE) $(IMAGES)/$(T)-factory-$(TIMESTAMP).bin
-	cp -f $(BUILD_DIR)/$(T)/$(SYSUPGRADE) $(IMAGES)/$(T)-upgrade-$(TIMESTAMP).bin
+	cp -f $(BUILD_DIR)/$(T)/$(IMAGE) $(IMAGES)/$(NAME)-factory-$(TIMESTAMP).bin
+	cp -f $(BUILD_DIR)/$(T)/$(SYSUPGRADE) $(IMAGES)/$(NAME)-upgrade-$(TIMESTAMP).bin
 	@echo 
 	@echo "qMp firmware compiled, you can find output files in $(IMAGES) directory"
 endef
@@ -121,13 +121,15 @@ endef
 checkout: .checkout_qmp .checkout_eig 
 	$(if $(T),,$(call target_error))
 	$(if $(wildcard .checkout_$(T)),,$(call checkout_src))
-	$(if $(wildcard .checkout_$(T)),,$(call update_feeds))
+	$(if $(wildcard .checkout_$(T)),,$(call update_feeds,$(T)))
 	$(if $(wildcard .checkout_$(T)),,$(call copy_config))
 	@touch .checkout_$(T)
 	
 update: .checkout_eig .checkout_qmp
 	cd $(BUILD_DIR)/qmp && git pull
 #	cd $(BUILD_DIR)/eigennet/packages && git pull
+
+update_all: update
 	$(if $(T),HW_AVAILABLE=$(T)) 
 	$(foreach dir,$(HW_AVAILABLE),$(if $(wildcard $(BUILD_DIR)/$(dir)),$(call update_feeds,$(dir))))
 
diff --git a/README b/README
index b82883a..b611c69 100644
--- a/README
+++ b/README
@@ -42,12 +42,16 @@ To see list of avaiable targets run:
 This will update all targets
 
     make update
-    (this will update qmp and eigennet feeds, not openwrt source)
+    (this will update only qmp source)
 
 This will update only rspro target
 
     make T=rspro update
 
+This will update all sources (qmp, openwrt feeds and eighennet)
+
+    make update_all
+
 To run menuconfig (from openwrt):
 
     make T=rspro menuconfig
diff --git a/targets.mk b/targets.mk
index 9966b29..a9fa444 100644
--- a/targets.mk
+++ b/targets.mk
@@ -22,7 +22,7 @@ ifeq ($(T),rs)
 endif
 
 ifeq ($(T),alix)
-  NAME:=Alix 
+  NAME:=Alix
   ARCH:=x86
   IMAGE:=bin/$(ARCH)/openwrt-x86-generic-combined-squashfs.img
   SYSUPGRADE:=bin/$(ARCH)/openwrt-x86-generic-combined-squashfs.img
