Track Revision

This commit is contained in:
Kenwood 2022-02-08 11:51:24 -05:00
parent da9d81f2a0
commit 5d46c95808
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,5 @@
# Written by joe # Written by joe
# Revision da9d81f2
# Variables # Variables
REVISION := "$(shell git describe --abbrev=8 --dirty --always --tags)" REVISION := "$(shell git describe --abbrev=8 --dirty --always --tags)"
@ -22,6 +23,7 @@ copy:
pdf: copy pdf: copy
cd $(BUILDDIR) && find . -name '*.tex' -exec latexmk --shell-escape -pdf {} \; cd $(BUILDDIR) && find . -name '*.tex' -exec latexmk --shell-escape -pdf {} \;
# Package everything into a neat little zip + pdf
submit: pdf submit: pdf
rm -rvf $(SUBMITDIR) rm -rvf $(SUBMITDIR)
mkdir -p $(SUBMITDIR) mkdir -p $(SUBMITDIR)
@ -36,7 +38,7 @@ submit: pdf
# cleanup # cleanup
cd $(SUBMITDIR) && find -type f '(' -name "*.tex*" -o -name "*.sty*" -o -name "*.bib" ')' -exec rm {} \; cd $(SUBMITDIR) && find -type f '(' -name "*.tex*" -o -name "*.sty*" -o -name "*.bib" ')' -exec rm {} \;
# Clean all
clean: clean:
git clean -fdX git clean -fdX
rm -rvf $(SUBMITDIR) rm -rvf $(SUBMITDIR)