Modified latex makefile to ignore temp directory

This commit is contained in:
Andreas Tsouchlos 2022-10-25 17:32:12 +02:00
parent e44dd55c65
commit 83c21736e2
2 changed files with 6 additions and 13 deletions

View File

@ -10,7 +10,7 @@ CFLAGS = -pdf -shell-escape -halt-on-error
TARGETS = $(BUILDDIR)/thesis.pdf
all: precomp $(TARGETS) postcomp
all: clean precomp $(TARGETS) postcomp
precomp:
@mkdir -p $(TEMPDIR)
@ -23,10 +23,8 @@ postcomp:
$(BUILDDIR)/thesis.pdf: $(TEMPDIR)/thesis.tex
$(CC) $(CFLAGS) -output-directory=../$(BUILDDIR) -cd $<
f: clean all
clean:
rm -r $(BUILDDIR)
rm -rf $(BUILDDIR) $(TEMPDIR)
show:
okular $(TARGETS) &

View File

@ -4,23 +4,18 @@
#### Kompilieren
Durch ausführen des Befehls
```bash
$ make
```
wird ein neuer `build` ordner erstellt, in welchem das kompilierte Dokument,
Es wird ein neuer `build` ordner erstellt, in welchem das kompilierte Dokument,
`thesis.pdf` zu finden ist.
Wenn der `build` ordner bereits existiert, kann
```bash
$ make f
```
genutzt werden, um eine neu-Kompilierung zu erzwingen.
#### Auto-Formatierung
Die Auto-Formatierung scheint aus Gründen manchmal noch nicht richtig zu funktionieren
```bash
$ latexindent -w -s -l -m [filename] -c build
```
Die Auto-Formatierung scheint aus Gründen manchmal noch nicht richtig zu funktionieren.