diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 887ee67..21d6700 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -16,4 +16,4 @@ jobs: - uses: actions/upload-artifact@master with: name: Compiled Thesis - path: ./thesis_masters.pdf + path: ./thesis.pdf diff --git a/.gitignore b/.gitignore index edc32ab..392fc92 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ #Generated files -thesis_masters.pdf +thesis.pdf +*.fls #Binary and Image *.exe diff --git a/README.md b/README.md index 7d20107..d0d2867 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,21 @@ texlive-pictures \ texlive-science \ ``` +You can then build the thesis with `make`: + +```bash +make +``` + +This will produce a `thesis.pdf` in the root directory of your repository, +along with all the intermediate build files. You can instead run: + +```bash +make tidy +``` + +To just produce the PDF. + ### Build On Github The easiest way to build the PDF is to use [Github Actions][actions]. This diff --git a/makefile b/makefile index 37a370d..d0b171a 100644 --- a/makefile +++ b/makefile @@ -1,7 +1,7 @@ LATEXMK=./latexmk/latexmk # Various dependencies -MAIN=thesis_masters +MAIN=thesis MAIN_PDF=$(MAIN).pdf MAIN_TEX=$(MAIN).tex HELPER_FILES= makefile mnthesis.cls @@ -23,7 +23,7 @@ $(MAIN_PDF): ALWAYS_COMPILE $(MAIN_TEX) $(HELPER_FILES) $(PRELIMS) $(CHAPTERS) $ $(LATEXMK) -pdf $(MAIN_TEX) # Clean up all the regeneratable files except for the final document (the .pdf) -tidy: +tidy: $(MAIN_PDF) $(LATEXMK) -c $(MAIN_TEX) # Clean up all the regeneratable files, including the final document diff --git a/thesis_masters.tex b/thesis.tex similarity index 100% rename from thesis_masters.tex rename to thesis.tex