Commit 93036659 authored by Edward Longman's avatar Edward Longman
Browse files

Add prezipped quickstart options in makefile with ziptest make target

parent 3b0f0b61
...@@ -72,11 +72,24 @@ DOCDIR = "$(TEXMF)/doc/latex/$(STYLE)" ...@@ -72,11 +72,24 @@ DOCDIR = "$(TEXMF)/doc/latex/$(STYLE)"
BIBDIR = "$(TEXMF)/bibtex/bib/$(STYLE)" BIBDIR = "$(TEXMF)/bibtex/bib/$(STYLE)"
SRCDIR = "$(TEXMF)/source/latex/$(STYLE)" SRCDIR = "$(TEXMF)/source/latex/$(STYLE)"
TEMPLATEDEPS = figure.eps UOS.bib
ARTICLEDEPS = uosarticle.cls Article.tex $(TEMPATEDEPS)
BOOKDEPS = $(TEMPATEDEPS) Definitions.tex Introduction.tex Conclusions.tex AppendixA.tex
GDPDEPS = uosgdp.cls GDP.tex $(BOOKDEPS)
GDPSUMMARYDEPS = uosgdpsummary.cls GDPSummary.tex $(TEMPATEDEPS)
MINITHESISDEPS = uosminithesis.cls MiniThesis.tex $(BOOKDEPS)
PROGRESSDEPS = uosprogress.cls Progress.tex $(BOOKDEPS)
PROJECTDEPS = uosproject.cls Project.tex $(BOOKDEPS)
REPORTDEPS = uosreport.cls Report.tex $(BOOKDEPS)
THESISDEPS = uosthesis.cls Thesis.tex UoSLogo.png $(BOOKDEPS)
#*====================== LATEX INSTALLATION CONFIG ========================== #*====================== LATEX INSTALLATION CONFIG ==========================
LATEX = pdflatex LATEX = pdflatex
PDFTEXIFY = texify --pdf PDFTEXIFY = texify --pdf
MAKEINDEX = makeindex MAKEINDEX = makeindex
ZIP = 7z a -tzip
UNZIP = 7z e
#*==================== DIFFERENT MAKE CONFIGURATIONS ======================== #*==================== DIFFERENT MAKE CONFIGURATIONS ========================
...@@ -84,6 +97,8 @@ all: $(GENFILES) $(DOCFILES) ...@@ -84,6 +97,8 @@ all: $(GENFILES) $(DOCFILES)
dist: $(STYLE).zip dist: $(STYLE).zip
test: $(GENFILES) $(TESTFILES) test: $(GENFILES) $(TESTFILES)
UNZIPFILES = $(patsubst %, unzipped/%, $(TESTFILES))
ziptest: $(UNZIPFILES)
#* .SECONDARY used to stop it building repeatedly #* .SECONDARY used to stop it building repeatedly
#* https://stackoverflow.com/questions/2973445/ #* https://stackoverflow.com/questions/2973445/
...@@ -101,13 +116,30 @@ $(DOCFILES): $(STYLE).dtx ...@@ -101,13 +116,30 @@ $(DOCFILES): $(STYLE).dtx
%.pdf: %.tex %.pdf: %.tex
$(PDFTEXIFY) $*.tex $(PDFTEXIFY) $*.tex
unzipped/%.pdf: %.zip
$(UNZIP) -obuild/ $*.zip
$(PDFTEXIFY) build/$*.tex -output-directory="build/" --quiet
grep "2021/02/15 v1.3" build/$*.log
cp build/$*.pdf unzipped/$*.pdf
rm build/*
#*========================== ZIP REQUIREMENTS =============================== #*========================== ZIP REQUIREMENTS ===============================
Article.zip: $(GENFILES) $(DOCFILES)
$(STYLE).zip: $(GENFILES) $(DOCFILES) $(ZIP) $@ $(ARTICLEDEPS)
$(MAKE) clean GDP.zip: $(GENFILES) $(DOCFILES)
zip $@ $(SRCFILES) $(GENFILES) $(DOCFILES) $(ZIP) $@ $(GDPDEPS)
GDPSummary.zip: $(GENFILES) $(DOCFILES)
$(ZIP) $@ $(GDPSUMMARYDEPS)
MiniThesis.zip: $(GENFILES) $(DOCFILES)
$(ZIP) $@ $(MINITHESISDEPS)
Progress.zip: $(GENFILES) $(DOCFILES)
$(ZIP) $@ $(PROGRESSDEPS)
Project.zip: $(GENFILES) $(DOCFILES)
$(ZIP) $@ $(PROJECTDEPS)
Report.zip: $(GENFILES) $(DOCFILES)
$(ZIP) $@ $(REPORTDEPS)
Thesis.zip: $(GENFILES) $(DOCFILES)
$(ZIP) $@ $(THESISDEPS)
#*============================= CLEAN TYPES ================================= #*============================= CLEAN TYPES =================================
clean: clean:
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
\ProvidesFile{uosdocs.drv} \ProvidesFile{uosdocs.drv}
%</driver> %</driver>
%<*thesis|minithesis|progress|project|report|article|gdp|gdpsummary|driver> %<*thesis|minithesis|progress|project|report|article|gdp|gdpsummary|driver>
[2020/09/16 v1.2 [2021/02/15 v1.3
%</thesis|minithesis|progress|project|report|article|gdp|gdpsummary|driver> %</thesis|minithesis|progress|project|report|article|gdp|gdpsummary|driver>
%<thesis|minithesis|progress|project|report|article|gdp|gdpsummary> LaTeX document class] %<thesis|minithesis|progress|project|report|article|gdp|gdpsummary> LaTeX document class]
% \end{macrocode} % \end{macrocode}
...@@ -1265,9 +1265,9 @@ ...@@ -1265,9 +1265,9 @@
%<*thesis|minithesis|progress|project|report|gdp> %<*thesis|minithesis|progress|project|report|gdp>
\chapter*{\addmaterialname \chapter*{\addmaterialname
%</thesis|minithesis|progress|project|report|gdp> %</thesis|minithesis|progress|project|report|gdp>
%<*article> %<*article|gdpsummary>
\section*{\addmaterialname \section*{\addmaterialname
%</article> %</article|gdpsummary>
\@mkboth{ \@mkboth{
\MakeUppercase\addmaterialname}{\MakeUppercase\addmaterialname}} \MakeUppercase\addmaterialname}{\MakeUppercase\addmaterialname}}
\@starttoc{lom} \@starttoc{lom}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment