diff options
author | Karl Berry <karl@freefriends.org> | 2013-03-20 21:38:44 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-03-20 21:38:44 +0000 |
commit | d8babc4954624c4f019bfc69f90273dbb0ea6c35 (patch) | |
tree | 3c38972d861ba05073523786cfb5e93efff375b2 /Master/texmf-dist/doc/latex/unswcover/Makefile | |
parent | 88545e1fcea794d19f086a314890a8fe1b4dc891 (diff) |
unswcover (20mar13)
git-svn-id: svn://tug.org/texlive/trunk@29446 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/unswcover/Makefile')
-rw-r--r-- | Master/texmf-dist/doc/latex/unswcover/Makefile | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/unswcover/Makefile b/Master/texmf-dist/doc/latex/unswcover/Makefile new file mode 100644 index 00000000000..0dda7123cc9 --- /dev/null +++ b/Master/texmf-dist/doc/latex/unswcover/Makefile @@ -0,0 +1,56 @@ +TEXMFHOME=/usr/local/share/texmf +DESTDIR=$(TEXMFHOME)/tex/latex/unswcover + +INSTALL=install +TEXHASH=texhash +INKSCAPE=inkscape +LATEX=pdflatex +BIBTEX=bibtex + +STYLE=unswcover.sty +LOGOSBASE=logo_unsw_short. + +LOGOSPS=$(LOGOSBASE:.=.ps) +LOGOSPDF=$(LOGOSBASE:.=.pdf) +LOGOS=$(LOGOSPS) $(LOGOSPDF) + +PACKAGENAME=unswcover-$(shell date +%Y%m%d) + +all: $(LOGOS) thesis.pdf + +thesis.aux: thesis.tex + $(LATEX) -draftmode -interaction nonstopmode $< > /dev/null +thesis.pdf: thesis.tex thesis.aux + $(BIBTEX) $(<:.tex=.aux) + $(LATEX) -halt-on-error -interaction nonstopmode $< > /dev/null + $(LATEX) -halt-on-error -interaction nonstopmode $< > /dev/null + +install: $(STYLE) $(LOGOS) + $(INSTALL) -m 0755 -d $(DESTDIR) + $(INSTALL) -m 0644 $(STYLE) $(LOGOS) $(ARTWORK) $(DESTDIR) + $(TEXHASH) $(TEXMFHOME) + +package: $(PACKAGENAME).tar.bz2 +$(PACKAGENAME).tar.bz2: $(STYLE) $(LOGOS) $(ARTWORK) README Makefile thesis.tex thesis.bib + test ! -d $(PACKAGENAME) + for FILE in $^; do\ + DIR=$(PACKAGENAME)/`dirname $$FILE`; \ + mkdir -p $$DIR; \ + cp $$FILE $$DIR; \ + done + tar cjvf $@ $(PACKAGENAME) + rm -rf $(PACKAGENAME) + +%.ps: %.svg + $(INKSCAPE) -P $@ $< +%.pdf: %.svg + $(INKSCAPE) -A $@ $< + +clean: + rm -f *.pdf *.ps + rm -f *.log *.out *.nav *.snm *.toc *.bbl *.bcf *.blg *-blx.bib *.run.xml + +real-clean: clean + rm -f *.aux + +.PHONY: all install package clean real-clean |