# UNIX-Makefile ### variables to configure for the local system #installation directories TEXINPUTS = . TEXDOCS_SRC = . TEXDOCS_DVI = $(TEXDOCS_SRC) TEXDOCS_PS = $(TEXDOCS_SRC) #executables LATEX = latex DVIPS = dvips -z -o CAT = cat CDUP = cd .. COPY = cp ECHO = echo LSR = ls -lR MKDIR = mkdir PACK = gzip > RM = /bin/rm -rf TAR = tar cvf - ### do not change anything beyond this line PACKAGE = hyper default: $(PACKAGE).dvi $(PACKAGE).dvi: $(PACKAGE).dtx $(LATEX) $(PACKAGE).dtx $(LATEX) $(PACKAGE).dtx $(LATEX) $(PACKAGE).dtx $(PACKAGE).ps: $(PACKAGE).dvi $(DVIPS) $(PACKAGE).ps $(PACKAGE).dvi files: $(PACKAGE).ins $(PACKAGE).dtx $(LATEX) $(PACKAGE).ins install: $(MAKE) -s install-info install-info: $(ECHO) "After configuring the Makefile call:" $(ECHO) " make install-package to install the package (without sources)" $(ECHO) " make install-doc to install the documentation sources" $(ECHO) " make install-dvi to install the documentation in dvi-format" $(ECHO) " make install-ps to install the documentation in ps-format" $(ECHO) " make install-all to install the package and the documentation" install-package: files -$(MKDIR) $(TEXINPUTS) $(COPY) *.sty *.hyp $(TEXINPUTS)/ $(COPY) contrib/*.hyp $(TEXINPUTS)/ $(COPY) scontrib/*.hyp $(TEXINPUTS)/ install-doc: $(PACKAGE).dtx - $(MKDIR) $(TEXDOCS_SRC) $(COPY) $(PACKAGE).dtx $(TEXDOCS_SRC)/ install-dvi: $(PACKAGE).dvi -$(MKDIR) $(TEXDOCS_DVI) $(COPY) $(PACKAGE).dvi $(TEXDOCS_DVI)/ install-ps: $(PACKAGE).ps -$(MKDIR) $(TEXDOCS_PS) $(COPY) $(PACKAGE).ps $(TEXDOCS_PS)/ install-all: install-package install-doc install-dvi install-ps manifest: clean $(LSR) . | $(CAT) >manifest distrib distribution package: manifest $(CDUP); $(TAR) $(PACKAGE) | $(PACK) $(PACKAGE).tar.gz clean: $(RM) *.aux *.cfg *.dvi *.hyp *.log *.ps *.sty *.toc $(RM) .nfs*