MKDIR=mkdir COPY=cp CHDIR=cd RM=rm -f ZIP=zip -9 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 distrib: (cd ..; $(ZIP) hyperref \ hyperref/*.txt\ hyperref/ANNOUNCE \ hyperref/ChangeLog \ hyperref/hyperref.dtx \ hyperref/nameref.dtx \ hyperref/backref.dtx \ hyperref/hyperref.ins \ hyperref/Makefile \ hyperref/xr-hyper.sty \ hyperref/minitoc-hyper.sty \ hyperref/ntheorem-hyper.sty \ hyperref/hyl* \ hyperref/test/Makefile \ hyperref/test/test*.tex \ hyperref/test/bit.tex \ hyperref/test/testbib.bib \ hyperref/test/testbib.bbl \ hyperref/test/testurl.bib \ hyperref/test/testurl.bbl \ hyperref/test/b*.png \ hyperref/test/phys*.jpg \ hyperref/test/test7.pdf \ hyperref/test/picture.* \ hyperref/test/hog.* \ ) (cd ..; $(ZIP) hyperdoc \ hyperref/doc/options.tex \ hyperref/doc/manual.pdf \ hyperref/doc/slides.pdf \ hyperref/doc/paper.pdf \ ) checks: cd test; for what in test*tex ;\ do \ pdflatex $$what; pdflatex $$what; latex $$what; latex $$what ;\ done