diff options
| author | Manuel Traut <manut@linutronix.de> | 2012-03-14 06:17:52 +0100 |
|---|---|---|
| committer | Manuel Traut <manut@linutronix.de> | 2018-03-16 21:34:49 +0100 |
| commit | 0a8ebf687082a4ef7e7d7a5a00871381c02fcee0 (patch) | |
| tree | 7e28da2e8cc08a89d18d2cb8280365624ef9c169 | |
| parent | 23b467fc9aba4761df833285d435d7b431bd342a (diff) | |
update makefile to build all pdfs
Signed-off-by: Manuel Traut <manut@linutronix.de>
| -rw-r--r-- | Makefile | 118 |
1 files changed, 95 insertions, 23 deletions
@@ -99,26 +99,98 @@ build_master_pres: clean_master_pres ($(MAKE) -C $$dir -f $(CURDIR)/modules.mk build_master_pres >> log.txt); \ ($(MAKE) -C $$dir -f $(CURDIR)/modules.mk build_master_pres_end >> log.txt); \ done - -clean_master_pres: -ifneq ($(shell find . -name $(MASTER_PRES)*$(MASTER_END)), ) - find . -name $(MASTER_PRES)*$(MASTER_END) -exec rm {} \; -endif - -build_master_handout: clean_master_handout - @echo "Build master handout with: "$(obj-handout-y) - for dir in $(PATHS) ; do \ - ($(MAKE) -C $$dir -f $(CURDIR)/modules.mk build_master_handout >> log.txt); \ - ($(MAKE) -C $$dir -f $(CURDIR)/modules.mk build_master_handout_end >> log.txt); \ - done - -clean_master_handout: -ifneq ($(shell find . -name $(MASTER_HANDOUT)*$(MASTER_END)), ) - find . -name $(MASTER_HANDOUT)*$(MASTER_END) -exec rm {} \; -endif - -%_defconfig: $(KCONFIG) - cp $(CONFIG_FOLDER)/$@ $(CONFIG_FILE) - $(KCONFIG) --oldconfig Kconfig - -.PHONY: config oldconfig menuconfig build clean mrproper distclean clean_master_pres build_master_handout + rm -rf pdf + rm -f *.aux + rm -f *.log + rm -f *.nav + rm -f *.toc + rm -f *.pdf + rm -f *.snm + rm -f *.bbl + rm -f *.blg + rm -f *.out + rm -f *.vrb + +vorlesung:: + mv configpres.tex _configpres.tex + touch configpres.tex + mv tailpres.tex _tailpres.tex + touch tailpres.tex + pdflatex vorl1.tex + pdflatex vorl1.tex + pdflatex vorl2.tex + pdflatex vorl2.tex + pdflatex vorl3.tex + pdflatex vorl3.tex + pdflatex vorl4.tex + pdflatex vorl4.tex + pdflatex vorl5.tex + pdflatex vorl5.tex + pdflatex vorl6.tex + pdflatex vorl6.tex + pdflatex vorl7.tex + pdflatex vorl7.tex + pdflatex vorl.tex + pdflatex vorl.tex + rm configpres.tex tailpres.tex + mv _configpres.tex configpres.tex + mv _tailpres.tex tailpres.tex + mv confighandout.tex _confighandout.tex + touch confighandout.tex + mv tailhandout.tex _tailhandout.tex + touch tailhandout.tex + TEXINPUTS=`pwd`/wise:.:$(TEXINPUTS) pdflatex handout1.tex + TEXINPUTS=`pwd`/wise:.:$(TEXINPUTS) pdflatex handout1.tex + TEXINPUTS=`pwd`/wise:.:$(TEXINPUTS) pdflatex handout2.tex + TEXINPUTS=`pwd`/wise:.:$(TEXINPUTS) pdflatex handout2.tex + TEXINPUTS=`pwd`/wise:.:$(TEXINPUTS) pdflatex handout3.tex + TEXINPUTS=`pwd`/wise:.:$(TEXINPUTS) pdflatex handout3.tex + TEXINPUTS=`pwd`/wise:.:$(TEXINPUTS) pdflatex handout4.tex + TEXINPUTS=`pwd`/wise:.:$(TEXINPUTS) pdflatex handout4.tex + TEXINPUTS=`pwd`/wise:.:$(TEXINPUTS) pdflatex handout5.tex + TEXINPUTS=`pwd`/wise:.:$(TEXINPUTS) pdflatex handout5.tex + TEXINPUTS=`pwd`/wise:.:$(TEXINPUTS) pdflatex handout.tex + TEXINPUTS=`pwd`/wise:.:$(TEXINPUTS) pdflatex handout.tex + rm confighandout.tex tailhandout.tex + mv _confighandout.tex confighandout.tex + mv _tailhandout.tex tailhandout.tex + + +pres:: + mv configpres.tex _configpres.tex + touch configpres.tex + mv tailpres.tex _tailpres.tex + touch tailpres.tex + pdflatex pres_master.tex + bibtex pres_master.aux + pdflatex pres_master.tex + pdflatex pres_master.tex + rm configpres.tex tailpres.tex + mv _configpres.tex configpres.tex + mv _tailpres.tex tailpres.tex +book:: + mv confighandout.tex _confighandout.tex + touch confighandout.tex + mv tailhandout.tex _tailhandout.tex + touch tailhandout.tex + TEXINPUTS=`pwd`/wise:.:$(TEXINPUTS) pdflatex handout_master.tex + bibtex handout_master.tex + TEXINPUTS=`pwd`/wise:.:$(TEXINPUTS) pdflatex handout_master.tex + TEXINPUTS=`pwd`/wise:.:$(TEXINPUTS) pdflatex handout_master.tex + rm confighandout.tailhandout.tex + mv _confighandout.tex confighandout.tex + mv _tailhandout.tex tailhandout.tex +pdf:: + rm -rf pdf + mkdir -p pdf/pres + mkdir -p pdf/handout + mkdir -p pdf/hints + find . -name pres_*.pdf | xargs cp -t pdf/pres + find . -name hints_*.pdf | xargs cp -t pdf/hints + find . -name handout_*.pdf | xargs cp -t pdf/handout + cd pdf/pres && \ + pdfsam-console -o `pwd`/../pres.pdf -d `pwd` concat + cd pdf/hints && \ + pdfsam-console -o `pwd`/../hints.pdf -d `pwd` concat + cd pdf/handout && \ + pdfsam-console -o `pwd`/../handout.pdf -d `pwd` concat |
