commit e6c8d8eb66cf13bbd58e85a89b4086c9d0413ba5
Author: Agustí Moll Garcia <agusti@biruji.org>
Date:   Sat Nov 5 04:12:54 2011 +0100

    Makefile with using map

diff --git a/Makefile b/Makefile
index 60b4227..ac284a5 100644
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,8 @@ QMP_GIT = ssh://gitosis@qmp.cat:221/qmp.git
 QMP_GIT_BRANCH = master
 EIGENNET_GIT = git://gitorious.org/eigennet/packages.git
 EIGENNET_GIT_REV = 7467D68855991FE35797B0A5958B000F65C0134F
+B6M_GIT = git://qmp.cat/b6m.git
+B6M_GIT_BRANCH = openwrt
 BUILD_DIR = build
 CONFIG_DIR = configs
 MY_CONFIGS = $(BUILD_DIR)/configs
@@ -118,6 +120,11 @@ endef
 	cd $(BUILD_DIR)/eigennet/packages && git reset --hard $(EIGENNET_GIT_REV)
 	@touch $@
 
+.checkout_b6m:
+	git clone $(B6M_GIT) $(BUILD_DIR)/b6m
+	cd $(BUILD_DIR)/qmp; git checkout --track origin/$(B6M_GIT_BRANCH); cd ..
+	@touch $@	
+
 checkout: .checkout_qmp .checkout_eig 
 	$(if $(T),,$(call target_error))
 	$(if $(wildcard .checkout_$(T)),,$(call checkout_src))
@@ -125,7 +132,7 @@ checkout: .checkout_qmp .checkout_eig
 	$(if $(wildcard .checkout_$(T)),,$(call copy_config))
 	@touch .checkout_$(T)
 	
-update: .checkout_eig .checkout_qmp
+update: .checkout_eig .checkout_qmp .checkout_b6m
 	cd $(BUILD_DIR)/qmp && git pull
 #	cd $(BUILD_DIR)/eigennet/packages && git pull
 
