Revisió a80183bc
Afegit per Pau Escrich fa més de 12 anys
Makefile | ||
---|---|---|
|
||
.PHONY: checkout update clean config menuconfig kernel_menuconfig list_targets build clean_qmp
|
||
|
||
|
||
define build_src
|
||
make -C $(BUILD_DIR)/$(TARGET) $(MAKE_SRC) BRANCH_GIT=$(shell git --git-dir=$(BUILD_DIR)/qmp/.git branch|grep ^*|cut -d " " -f 2) REV_GIT=$(shell git --git-dir=$(BUILD_DIR)/qmp/.git --no-pager log -n 1 --oneline|cut -d " " -f 1)
|
||
$(eval BRANCH_GIT=$(shell git --git-dir=$(BUILD_DIR)/qmp/.git branch|grep ^*|cut -d " " -f 2))
|
||
$(eval REV_GIT=$(shell git --git-dir=$(BUILD_DIR)/qmp/.git --no-pager log -n 1 --oneline|cut -d " " -f 1))
|
||
make -C $(BUILD_DIR)/$(TARGET) $(MAKE_SRC) BRANCH_GIT=$(BRANCH_GIT) REV_GIT=$(REV_GIT)
|
||
endef
|
||
|
||
define checkout_src
|
També disponible a: Unified diff
Splited BRANCH_GIT and REV_GIT in lines to be more readable