summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/hyperref/Makefile
blob: b98f0011362f3b484b66071cd715510110edf025 (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
42
43
44
45
46
47
48
MKDIR=mkdir
COPY=cp
CHDIR=cd
RM=rm -f
INSTALLDIRVAR=TEXMFMAIN
SHELL=sh
all: hyperref test

hyperref: unpack documentation

unpack:
	latex hyperref.ins

hyperref.drv: unpack

documentation: hyperref.drv
	latex hyperref.dtx
	makeindex -s gind hyperref
	latex hyperref.dtx
	makeindex -s gind hyperref
	latex hyperref.dtx

test: test.nodir
test.nodir:
	$(CHDIR) test; latex test0
	$(CHDIR) test; makeindex test0
	$(CHDIR) test; latex test0

install: unpack
	( \
	TEXMF=`kpsewhich -expand-var '$$$(INSTALLDIRVAR)'`; \
	echo installing to $${TEXMF}/tex/latex/hyperref; \
	$(MKDIR) $${TEXMF}/tex/latex/hyperref; \
	$(COPY) *.sty *.def htex4ht.cfg $${TEXMF}/tex/latex/hyperref \
	)

clean:
	-$(RM) *.aux *.toc *.idx *.drv *.dvi *.log *.rep *.lof *.brf *.tmp *.ist *.ilg *.ind *.out *.css *.html
	-$(CHDIR) test; $(RM) *.dvi *.aux *.log *.toc *.lot *.lof *.idx *.ilg *.ind *.out *.brf
	-$(RM) nameref.sty backref.sty hyperref.sty hycheck.tex nohyperref.sty
	-$(RM) *.def htex4ht.cfg *.otc *.idv *.lg *.xref test.ps test.pdf
	-$(RM) hyperref.pdf

checks:
	cd test; for what in test*tex ;\
	do \
	 pdflatex $$what; pdflatex $$what; latex $$what; latex $$what ;\
	done