From c358412dbf0c779910057d4547f673e85b7b12dd Mon Sep 17 00:00:00 2001 From: Christian Eppler Date: Wed, 15 May 2013 11:25:41 +0200 Subject: Test with master Signed-off-by: Christian Eppler --- Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 66f002f..c86a9fa 100644 --- a/Makefile +++ b/Makefile @@ -23,11 +23,16 @@ KMCONFIG := $(KCONFIG_PATH)/mconf/mconf LATEX_CONFIG := $(TOP_DIR)/config/ +MASTER_PRES := tmp_master_pres.tex +MATSER_HANDOUT := tmp_master_handout.tex + EXCLUDE_PATH := grep -v ./kconfig-frontends | grep -v ./kernel-devel/module-basics/vain | grep -v ./kernel-devel/module-basics/vain_pci | grep -v ./kernel-devel/module-basics/vain_plat # Sesrch for all folders with Makfile MAKE_FILES = $(shell find . -mindepth 2 -name Makefile | $(EXCLUDE_PATH)) PATHS = $(dir $(MAKE_FILES)) +FIRST_FOLDER_LEVEL := $(shell find . -maxdepth 1 -type d | $(EXCLUDE_PATH)) + export build: @@ -35,6 +40,9 @@ build: for dir in $(PATHS) ; do \ ($(MAKE) -C $$dir -f $(CURDIR)/modules.mk $@ ); \ done +ifeq ($(CONFIG_BUILD_MASTER_PRES),y) + ($(MAKE) -C ./ -f Makefile build_master_pres ); +endif menuconfig: $(KMCONFIG) Kconfig @@ -62,4 +70,19 @@ mrproper distclean: ($(MAKE) -C $$dir -f $(CURDIR)/modules.mk clean ); \ done +build_master_pres: + @echo "Build masterpres with:"$(obj-y) + `echo "\input{configmasterpres}" > $(MASTER_PRES)` + for dir in $(PATHS) ; do \ + ($(MAKE) -C $$dir -f $(CURDIR)/modules.mk build_master_pres ); \ + done + `echo "\input{tailmasterpres}" >> $(MASTER_PRES)` + $(BUILD) $(MASTER_PRES) + cp $(subst .tex,.pdf,$(MASTER_PRES)) $(DEPLOY)/ + +build_master_handout: + @echo "Build matser handout"$(obj-handout-y) + + + .PHONY: config oldconfig menuconfig build clean mrproper distclean -- cgit v1.2.3