diff options
| author | John Ogness <john.ogness@linutronix.de> | 2018-04-19 17:34:10 +0200 |
|---|---|---|
| committer | John Ogness <john.ogness@linutronix.de> | 2018-04-19 17:34:10 +0200 |
| commit | 64516f9cc4a3ecc3c75b158227d523addc33f386 (patch) | |
| tree | 5c3af06db85c717a44754d8f6bc75b26c7f0286d /Makefile | |
| parent | 76869963a8d6031afbb6f4eedc94fc98bfd217fa (diff) | |
printouts: add Kconfig option to build with printouts
If enabled, all selected presentations will also be build using
the print templates. These are named the same, but stored in the
deploy/printouts subdirectory.
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 23 |
1 files changed, 19 insertions, 4 deletions
@@ -28,7 +28,9 @@ CONFIG_OLD := $(CONFIG).old DEPLOY_FOLDER := deploy DEPLOY := $(CONFIG_PATH)/$(DEPLOY_FOLDER) HANDOUT_FOLDER := handouts -HANDOUT :=$(DEPLOY)/$(HANDOUT_FOLDER) +DEPLOYHANDOUT := $(DEPLOY)/$(HANDOUT_FOLDER) +PRINTOUT_FOLDER := printouts +DEPLOYPRINTOUT := $(DEPLOY)/$(PRINTOUT_FOLDER) DEFCONF_FOLDER := $(CURDIR)/configs BUILD_COMMAND := latexmk @@ -65,8 +67,21 @@ PATHS = $(dir $(MAKE_FILES)) export build: $(BUILD_REQ) - $(Q)mkdir -p $(HANDOUT) - $(Q)$(foreach dir,$(PATHS),$(MODMK) -C $(dir) $@;) +ifdef CONFIG_BUILD_HANDOUTS + $(Q)mkdir -p $(DEPLOYHANDOUT) + $(Q)$(foreach dir,$(PATHS),$(MODMK) -C $(dir) buildhandouts;) +endif +ifdef CONFIG_BUILD_PRINTOUTS + $(Q)$(foreach dir,$(PATHS),$(MODMK) -C $(dir) clean_texfiles;) + $(Q)touch .lxformat_print + $(Q)mkdir -p $(DEPLOYPRINTOUT) + $(Q)$(foreach dir,$(PATHS),$(MODMK) -C $(dir) buildprintouts;) + $(Q)$(foreach dir,$(PATHS),$(MODMK) -C $(dir) clean_texfiles;) + $(Q)rm -f .lxformat_print +endif + $(Q)rm -f .lxformat_print + $(Q)mkdir -p $(DEPLOY) + $(Q)$(foreach dir,$(PATHS),$(MODMK) -C $(dir) build;) $(KMCONFIG): cd kconfig-frontends/ && ./configure && make @@ -86,7 +101,7 @@ oldconfig: $(KCONFIG) clean: $(Q)$(foreach dir,$(PATHS),$(MODMK) -C $(dir) $@_texfiles;) - $(Q)rm -rf $(DEPLOY_FOLDER) + $(Q)rm -rf $(DEPLOY_FOLDER) .lxformat_print mrproper: clean $(Q)echo [CLEAN] $@ |
