From 2299479ef5ff3b9c73a2da1b1152fdaa4d18dca3 Mon Sep 17 00:00:00 2001 From: Holger Dengler Date: Wed, 18 Apr 2018 10:42:31 +0200 Subject: build: remove master-presentation and -handout builds Signed-off-by: Holger Dengler --- modules.mk | 65 +------------------------------------------------------------- 1 file changed, 1 insertion(+), 64 deletions(-) (limited to 'modules.mk') diff --git a/modules.mk b/modules.mk index 5d511e6..011ae92 100644 --- a/modules.mk +++ b/modules.mk @@ -39,67 +39,4 @@ clean_texfiles: rm -f *.fls rm -f *.fdb_latexmk -build_master_pres: -ifneq ($(filter $(PRES_PREFIX)%,$(obj-y)), ) - `echo "\input{$(dir $(CURDIR))section.tex}" >> ../$(MASTER_PRES)$(MASTER_END)` - for files in $(subst .pdf,.tex,$(filter $(PRES_PREFIX)%,$(obj-y))) ; do \ - `echo "\input{$(CURDIR)/$$files}" >> ../$(MASTER_PRES)$(MASTER_END)` ; \ - done -endif - -# Dirty for now the master_handout is build every time not only one time -build_master_$(PRES_PREFIX)end: -ifneq ($(filter $(PRES_PREFIX)%,$(obj-y)), ) - echo "\input{configmasterpres}" > ../$(MASTER_PRES)_$(BASE_NAME)$(MASTER_END) - cat ../$(MASTER_PRES)$(MASTER_END) >> ../$(MASTER_PRES)_$(BASE_NAME)$(MASTER_END) - echo "\input{tailmasterpres}" >> ../$(MASTER_PRES)_$(BASE_NAME)$(MASTER_END) - mv $(TOP_DIR)/configpres.tex $(TOP_DIR)/_configpres.tex - mv $(TOP_DIR)/tailpres.tex $(TOP_DIR)/_tailpres.tex - touch $(TOP_DIR)/configpres.tex - touch $(TOP_DIR)/tailpres.tex - TEXINPUTS=`pwd`/../..:.:..:$(TEXINPUTS) $(BUILD) ../$(MASTER_PRES)_$(BASE_NAME)$(MASTER_END) - mv $(TOP_DIR)/_configpres.tex $(TOP_DIR)/configpres.tex - mv $(TOP_DIR)/_tailpres.tex $(TOP_DIR)/tailpres.tex - -ifndef CONFIG_BUILD_FAST_BUILD - TEXINPUTS=`pwd`/../..:.:..:$(TEXINPUTS) $(BUILD) ../$(MASTER_PRES)_$(BASE_NAME)$(MASTER_END) - TEXINPUTS=`pwd`/../..:.:..:$(TEXINPUTS) $(BUILD) ../$(MASTER_PRES)_$(BASE_NAME)$(MASTER_END) -endif - cp $(MASTER_PRES)_$(BASE_NAME).pdf $(DEPLOY)/$(subst tmp_,,$(MASTER_PRES))_$(BASE_NAME).pdf -endif - -build_master_handout: -ifneq ($(filter $(HANDOUT_PREFIX)%,$(obj-handout-y)), ) - `echo "\input{$(dir $(CURDIR))section.tex}" >> ../$(MASTER_HANDOUT)$(MASTER_END)` - for files in $(subst .pdf,.tex,$(filter $(HANDOUT_PREFIX)%,$(obj-handout-y))) ; do \ - `echo "\input{$(CURDIR)/$$files}" >> ../$(MASTER_HANDOUT)$(MASTER_END)` ; \ - done -endif - -# Dirty for now the master_handout is build every time not only one time -build_master_$(HANDOUT_PREFIX)end: -ifneq ($(filter $(HANDOUT_PREFIX)%,$(obj-handout-y)), ) - echo "\input{configmasterhandout}" > ../$(MASTER_HANDOUT)_$(BASE_NAME)$(MASTER_END) - cat ../$(MASTER_HANDOUT)$(MASTER_END) >> ../$(MASTER_HANDOUT)_$(BASE_NAME)$(MASTER_END) - echo "\input{tailmasterhandout}" >> ../$(MASTER_HANDOUT)_$(BASE_NAME)$(MASTER_END) - # Only for TESTING dirty hack *********************************** - mv $(TOP_DIR)/confighandout.tex $(TOP_DIR)/_confighandout.tex - mv $(TOP_DIR)/tailhandout.tex $(TOP_DIR)/_tailhandout.tex - touch $(TOP_DIR)/confighandout.tex - touch $(TOP_DIR)/tailhandout.tex - # *************************************************************** - TEXINPUTS=`pwd`/../..:.:..:$(TEXINPUTS) $(BUILD) ../$(MASTER_HANDOUT)_$(BASE_NAME)$(MASTER_END) - -ifndef CONFIG_BUILD_FAST_BUILD - TEXINPUTS=`pwd`/../..:.:..:$(TEXINPUTS) $(BUILD) ../$(MASTER_HANDOUT)_$(BASE_NAME)$(MASTER_END) - TEXINPUTS=`pwd`/../..:.:..:$(TEXINPUTS) $(BUILD) ../$(MASTER_HANDOUT)_$(BASE_NAME)$(MASTER_END) -endif - # Only for TESTING dirty hack *********************************** - mv $(TOP_DIR)/_confighandout.tex $(TOP_DIR)/confighandout.tex - mv $(TOP_DIR)/_tailhandout.tex $(TOP_DIR)/tailhandout.tex - # *************************************************************** - cp $(MASTER_HANDOUT)_$(BASE_NAME).pdf $(HANDOUT)/$(subst tmp_,,$(MASTER_HANDOUT)_$(BASE_NAME).pdf) -endif - -.PHONY: clean build_master_$(PRES_PREFIX)end build_master_pres build_master_$(HANDOUT_PREFIX)end build_master_handout build - +.PHONY: clean_texfiles build -- cgit v1.2.3