Updated Makefiles
This commit is contained in:
27
Task_3/Task_3.2/Makefile
Normal file
27
Task_3/Task_3.2/Makefile
Normal file
@@ -0,0 +1,27 @@
|
||||
# Syntax
|
||||
# <target>: <dependencies>
|
||||
# <command>
|
||||
# ...
|
||||
|
||||
# variables
|
||||
LATEX = pdflatex
|
||||
BIB = bibtex
|
||||
|
||||
all: linux-24.pdf
|
||||
|
||||
# creating a pdf outof tex and bib file
|
||||
# % = filename without ending
|
||||
# $* = filename corresponding to %
|
||||
%.pdf: %.tex %.bib
|
||||
$(LATEX) $*
|
||||
$(BIB) $*
|
||||
$(LATEX) $*
|
||||
|
||||
# Überprüfe auf "undefined references" im Log-File
|
||||
@if grep -q "undefined references" $*.log; then \
|
||||
$(LATEX) $*; \
|
||||
fi
|
||||
|
||||
# remove all created files
|
||||
clean:
|
||||
rm -f *.pdf *.aux *.log *.bbl *.blg
|
||||
Reference in New Issue
Block a user