blob: e951a834e121b418b65c37c440682b2301fd925c (
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
30
31
32
33
34
35
36
37
38
39
40
41
|
PACKAGE=mugsthesis
PDF = $(PACKAGE).pdf
all: ${PDF} SAMPLE
%.pdf: %.dtx $(PACKAGE).cls
pdflatex $<
- makeindex -s gind.ist -o $*.ind $*.idx
- makeindex -s gglo.ist -o $*.gls $*.glo
pdflatex $<
while ( grep -1 '^LaTeX Warning: Label(s) may have changed' $*.log) do pdflatex $<; done
%.cls: %.ins %.dtx
latex $<
SAMPLE: sample/$(PACKAGE)_sample.tex sample/$(PACKAGE).cls
latexmk -pdf -cd $<
sample/%: %
cp $^ sample
sample/$(PACKAGE).cls: $(PACKAGE).cls
.PRECIOUS: $(PACKAGE).cls
docclean:
$(RM) *.log *.aux *.glo *.gls *.hd *.idx *.ilg *.ind *.out *.toc *.lof *.lot \
sample/*.log sample/*.aux sample/*.out sample/*.bbl sample/*.blg sample/*.fls \
sample/*.lof sample/*.lot sample/*.toc sample/*.fdb_latexmk sample/$(PACKAGE).cls
clean: docclean
$(RM) $(PACKAGE).cls
distclean: clean
$(RM) *.pdf sample/*.pdf
ctan: all clean
COPYFILE_DISABLE=1 tar -C .. -czvf ../$(PACKAGE).tgz --exclude '.git*' --exclude '*.tgz' $(PACKAGE); mv ../$(PACKAGE).tgz .
.PHONY: all SAMPLE docclean clean distclean ctan
|