summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tex-vpat/Makefile
blob: 1e3a431b9324398b6d3e152440a10cac03867f5d (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
PACKAGE=tex-vpat

SRC = texlive-vpat.tex

PDF = ${SRC:%.tex=%.pdf}

HTML = ${SRC:%.tex=%.html} ${SRC:%.tex=%.css}

all: ${PDF} ${HTML}

%.pdf: %.tex
	pdflatex $<
	while ( grep -q '^LaTeX Warning: Label(s) may have changed' $*.log) \
	do pdflatex $<; done


%.html: %.tex
	htlatex $<

%.css: %.tex
	htlatex $<

clean:
	$(RM)  *.log *.aux \
	*.cfg *.glo *.idx *.toc \
	*.ilg *.ind *.out *.lof \
	*.lot *.bbl *.blg *.gls *.cut *.hd \
	*.dvi *.ps *.thm *.tgz *.zip \
	*.4ht *.4ct *.4tc *.tmp *.idv *.lg *.xref

distclean: clean
	$(RM) ${PDF} ${HTML}

archive:  all clean
	COPYFILE_DISABLE=1 tar  -czvf ../$(PACKAGE).tgz --exclude '*~' \
	--exclude '*.tgz' --exclude '*.zip'  --exclude 2021tug \
	--exclude '.git*' --exclude '*.tar' \
	--transform 's/^./${PACKAGE}/' .; mv ../${PACKAGE}.tgz .