summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/randomlist/Makefile
blob: 150f1af3a5920147715ede8aef0c4d5ad580b9b0 (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
base=randomlist
default: package doc test # package ou class
final: package doc-final test

package: $(base).sty
$(base).sty: $(base).ins $(base).dtx
	tex '\nonstopmode \input $(base).ins'

class: $(base).cls
$(base).cls: $(base).ins $(base).dtx
	tex '\nonstopmode \input $(base).ins'

doc:
	latex '\nonstopmode \input $(base).dtx'
	dvips $(base)
	ps2pdf $(base).ps $(base).pdf
	rm $(base).dvi $(base).ps

doc-final:
	latex '\nonstopmode \input $(base).dtx'
	latex '\nonstopmode \input $(base).dtx'
	makeindex -s gind.ist -o $(base).ind $(base).idx
	makeindex -s gglo.ist -o $(base).gls $(base).glo
	latex '\nonstopmode \input $(base).dtx'
	dvips $(base)
	ps2pdf $(base).ps $(base).pdf
	rm $(base).dvi $(base).ps

test: randomlist.tex test.tex testtex.tex
	pdflatex '\nonstopmode \input test.tex'
	etex '\nonstopmode \input testtex.tex'
	pdftex '\nonstopmode \input testtex.tex'

ecm: ecm.tex
	pdflatex '\nonstopmode \input ecm.tex'

clean:
	rm -rf *~ *.aux *.dvi *.glo *.gls *.idx *.ilg *.ind *.log *.out *.ps *.toc

zip:
	cd .. ; zip $(base).zip randomlist/$(base).dtx randomlist/$(base).ins randomlist/$(base).pdf randomlist/$(base).sty randomlist/readme.txt randomlist/Makefile randomlist/comets.dat randomlist/pupils.dat randomlist/pythagoras.dat randomlist/test.tex randomlist/test.pdf randomlist/testtex.tex randomlist/testtex.pdf; mv $(base).zip randomlist/