From 87a3faf637d655e8f11d9c7bec67cdc273bf3560 Mon Sep 17 00:00:00 2001 From: Jannik Dunkelau <jannik.dunkelau@hhu.de> Date: Fri, 22 Nov 2019 12:25:17 +0100 Subject: [PATCH] Add zip target to make file Primary intend is easier distribution of the templates to students. --- .gitignore | 3 +++ Makefile | 10 ++++++++++ README.md | 3 +++ 3 files changed, 16 insertions(+) diff --git a/.gitignore b/.gitignore index cde1221..622d95c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,9 @@ # Ignore compiled thesis thesis.pdf +# Ignore zipped archive +thesis.zip + # Created by https://www.gitignore.io/api/linux,latex # Edit at https://www.gitignore.io/?templates=linux,latex diff --git a/Makefile b/Makefile index bf0c82c..968af51 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,22 @@ +.PHONY: install install: latexmk -pdf thesis.tex latexmk -c thesis.tex +.PHONY: watch watch: latexmk -pvc thesis.tex +.PHONY: clean clean: latexmk -C thesis.tex +.PHONY: zip +zip: + zip -r thesis . + # Make sure .git is not part of distribution + zip -d thesis.zip .git/\* + +.PHONY: bibtool bibtool: bibtool -R -r keep_bibtex -r field -r improve -r month -s references.bib -o references.bib diff --git a/README.md b/README.md index 0eef996..da16620 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,9 @@ make bibtool # Baut die PDF aus den Sources stetig neu, updated die Anzeige in Ihrem PDF-Betrachter make watch + +# Verpackt die Dateien im Verzeichnis in thesis.zip +make zip ``` Das Makefile nutzt hierbei `latexmk`, -- GitLab