summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/hepthesis/Makefile
blob: 9dad91545f870b62add768a2e5b32c96298a5789 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
HT := hepthesis
.PHONY: all clean

all: $(HT).tar.gz
	@true

$(HT).tar.gz: README ChangeLog $(HT).pdf example/example.pdf 
	mkdir $(HT)
	cp README TODO ChangeLog Makefile $(HT).pdf $(HT).cls $(HT).tex $(HT)
	mkdir $(HT)/example
	cp example/*.pdf example/*.tex example/*.cls example/*.sty $(HT)/example
	tar czf $@ $(HT)

$(HT).pdf: $(HT).tex example/example.pdf
	(rm -f $(HT).{aux,toc,lof,lot} && pdflatex $(HT).tex && pdflatex $(HT).tex && rm -f $(HT).{aux,toc,lof,lot})

example/example.pdf: example/example.tex
	(cd example && rm -f example.{aux,toc,lof,lot} && pdflatex example && bibtex example && pdflatex example && pdflatex example && rm -f example.{aux,toc,lof,lot})

clean:
	@rm -rf $(HT)
	@rm -f $(HT).tar.gz
	@rm -f $(HT).pdf $(HT).log $(HT).aux $(HT).out $(HT).dvi comment.cut
	@rm -f example/example.pdf example/example.log example/example.aux

check: $(HT).tar.gz
	rm -rf $(HT)
	tar xzf $(HT).tar.gz
	(cd $(HT) && make $(HT).pdf && make example/example.pdf)