Added SW readme and latex build files

This commit is contained in:
2022-10-25 17:23:07 +02:00
parent 0e93cd2d61
commit 2217f62253
5 changed files with 122 additions and 0 deletions

35
latex/Makefile Normal file
View File

@@ -0,0 +1,35 @@
BUILDDIR = build
SRCDIR = src
RESDIR = res
TEMPDIR = tmp
CC = latexmk
CFLAGS = -pdf -shell-escape -halt-on-error
TARGETS = $(BUILDDIR)/thesis.pdf
all: precomp $(TARGETS) postcomp
precomp:
@mkdir -p $(TEMPDIR)
@cd $(TEMPDIR) && ln -s ../$(SRCDIR)/* .
@cd $(TEMPDIR) && ln -s ../$(RESDIR)/* .
postcomp:
@rm -r $(TEMPDIR)
$(BUILDDIR)/thesis.pdf: $(TEMPDIR)/thesis.tex
$(CC) $(CFLAGS) -output-directory=../$(BUILDDIR) -cd $<
f: clean all
clean:
rm -r $(BUILDDIR)
show:
okular $(TARGETS) &
.PHONY: all precomp postcomp show clean f