64 lines
1.5 KiB
Makefile
64 lines
1.5 KiB
Makefile
BASENAME=thesis
|
|
DISTNAME=thesis_latex
|
|
DISTFOLDER?=$(shell pwd)
|
|
CLASS=vutinfth
|
|
VIEWER=zathura
|
|
|
|
.PHONY: default all
|
|
default: clean compile
|
|
all: clean compile doc
|
|
|
|
doc:
|
|
pdflatex -shell-escape ${CLASS}.dtx
|
|
pdflatex -shell-escape ${CLASS}.dtx
|
|
makeindex -s gglo.ist -o ${CLASS}.gls ${CLASS}.glo
|
|
makeindex -s gind.ist -o ${CLASS}.ind ${CLASS}.idx
|
|
pdflatex -shell-escape ${CLASS}.dtx
|
|
pdflatex -shell-escape ${CLASS}.dtx
|
|
|
|
document-class: ${CLASS}.cls
|
|
${CLASS}.cls:
|
|
pdflatex ${CLASS}.ins
|
|
|
|
compile: document-class
|
|
pdflatex -shell-escape $(BASENAME)
|
|
# makeglossaries $(BASENAME)
|
|
pdflatex -shell-escape $(BASENAME)
|
|
# makeglossaries $(BASENAME)
|
|
bibtex $(BASENAME)
|
|
pdflatex -shell-escape $(BASENAME)
|
|
pdflatex -shell-escape $(BASENAME)
|
|
|
|
view:
|
|
$(VIEWER) $(VIEWER_OPTIONS) $(BASENAME).pdf
|
|
|
|
zip: clean compile doc
|
|
zip -9 -r --exclude=*.git* $(BASENAME).zip \
|
|
build-all.bat \
|
|
build-all.sh \
|
|
build-thesis.bat \
|
|
build-thesis.sh \
|
|
graphics \
|
|
intro.bib \
|
|
intro.tex \
|
|
lppl.txt \
|
|
Makefile \
|
|
README.txt \
|
|
README-vutinfth.txt \
|
|
thesis.tex \
|
|
thesis.pdf \
|
|
vutinfth.dtx \
|
|
vutinfth.ins
|
|
|
|
dist: zip
|
|
cp $(BASENAME).zip $(DISTFOLDER)/$(DISTNAME).zip
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
find . -type f -not \( -name "${BASENAME}.tex" -o -name "*.backup" \) -name "${BASENAME}*" -delete -print
|
|
rm -f vutinfth.cls vutinfth.pdf
|
|
rm -f vutinfth.hd vutinfth.ind
|
|
find . -type f -name '*.aux' -delete -print
|
|
find . -type f -name '*.log' -delete -print
|
|
rm -f vutinfth.glo vutinfth.gls vutinfth.idx vutinfth.ilg vutinfth.out vutinfth.toc
|