From 8ecf2cd93564d76aee7dd81736d3cd5908b273cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Mon, 14 Mar 2022 12:41:22 +0100 Subject: move command configuration to common/Makefile.inc --- buch/Makefile | 28 ++++++++++++++-------------- buch/common/Makefile.inc | 8 +++++++- 2 files changed, 21 insertions(+), 15 deletions(-) diff --git a/buch/Makefile b/buch/Makefile index e2ad4c0..00fcf42 100755 --- a/buch/Makefile +++ b/buch/Makefile @@ -18,15 +18,15 @@ ALLTEXFILES = $(TEXFILES) $(CHAPTERFILES) # Buchblock für Druckerei # buch.pdf: buch.tex $(TEXFILES) buch.ind $(BLXFILES) - pdflatex buch.tex - bibtex buch + $(pdflatex) buch.tex + $(bibtex) buch buch.idx: buch.tex $(TEXFILES) images - touch buch.ind - pdflatex buch.tex + $(touch) buch.ind + $(pdflatex) buch.tex buch.ind: buch.idx - makeindex buch.idx + $(makeindex) buch.idx # # Papers in einzelne PDF-Files separieren für digitales Feedback @@ -39,16 +39,16 @@ separate: buch.aux buch.pdf # SeminarSpezielleFunktionen.pdf: SeminarSpezielleFunktionen.tex $(TEXFILES) \ SeminarSpezielleFunktionen.ind $(BLXFILES) - pdflatex SeminarSpezielleFunktionen.tex - bibtex SeminarSpezielleFunktionen + $(pdflatex) SeminarSpezielleFunktionen.tex + $(bibtex) SeminarSpezielleFunktionen SeminarSpezielleFunktionen.idx: SeminarSpezielleFunktionen.tex $(TEXFILES) \ images - touch SeminarSpezielleFunktionen.ind - pdflatex SeminarSpezielleFunktionen.tex + $(touch) SeminarSpezielleFunktionen.ind + $(pdflatex) SeminarSpezielleFunktionen.tex SeminarSpezielleFunktionen.ind: SeminarSpezielleFunktionen.idx - makeindex SeminarSpezielleFunktionen + $(makeindex) SeminarSpezielleFunktionen # # This Makefile can also construct the short tests @@ -56,17 +56,17 @@ SeminarSpezielleFunktionen.ind: SeminarSpezielleFunktionen.idx tests: test1.pdf test2.pdf test3.pdf test1.pdf: common/test-common.tex common/test1.tex aufgaben1.tex - pdflatex common/test1.tex + $(pdflatex) common/test1.tex test2.pdf: common/test-common.tex common/test1.tex aufgaben2.tex - pdflatex common/test2.tex + $(pdflatex) common/test2.tex test3.pdf: common/test-common.tex common/test1.tex aufgaben3.tex - pdflatex common/test3.tex + $(pdflatex) common/test3.tex # # Errata # errata.pdf: errata.tex - pdflatex errata.tex + $(pdflatex) errata.tex diff --git a/buch/common/Makefile.inc b/buch/common/Makefile.inc index c8b0f6e..b9461e5 100755 --- a/buch/common/Makefile.inc +++ b/buch/common/Makefile.inc @@ -4,9 +4,15 @@ # (c) 2021 Prof Dr Andreas Mueller, OST Ostschweizer Fachhochschule # - SUBDIRECTORIES = chapters +# change the following variables to suit your environment + +pdflatex = pdflatex +bibtex = bibtex +makeindex = makeindex +touch = touch + .PHONY: images images: -- cgit v1.2.1