# Makefile for the LaTeX2e package `draftcopy' # Copyright (C) Juergen Vollmer, all rights reserved. # Juergen Vollmer, University of Karlsruhe, IPD, Germany. # email: Juergen.Vollmer@informatik.uni-karlsruhe.de # WWW: http://i44www.info.uni-karlsruhe.de/~vollmer # $Id: Makefile,v 2.8 1996/05/20 10:01:43 vollmer draft $ BASE = draftcopy EXT = sty ######################################################################## ## LaTeX2e Makefile ## ## For configuration, update the following defines: ## ## TEXDIR = CONTRIB = $(TEXDIR)/lib/texmf/tex/latex2e/inputs/useful DOCDIR = $(TEXDIR)/doc/latex2e ## DVIPS = dvips GZIP = gzip LATEX = latex2e MAKEINDEX = makeindex GV = ghostview -a4 -magstep -2 ## ######################################################################## # $Id: Makefile,v 2.8 1996/05/20 10:01:43 vollmer draft $ CUR_REV = $$Revision: 2.8 $$ CUR_REV_DATE = $$Date: 1996/05/20 10:01:43 $$ CUR_REV_NR = ` expr '$(CUR_REV)' : '.*: \(.*\..*\) .*' ` TAR_FILE = $(BASE)-$(CUR_REV_NR).tar.gz TAR_DIR = $(BASE)-$(CUR_REV_NR) TAR = tar SRC = $(BASE).doc $(BASE).ins README.$(BASE) Makefile CI = ci CO = co REV = "-r2.3" all: ps test clean sty: $(BASE).sty dtx: $(BASE).dtx dvi: $(BASE).dvi ps: $(BASE).ps idx: $(BASE).ind $(BASE).gls $(LATEX) $(BASE).dtx test: for i in 1 2 3 4 5 6 7; do \ f=$(BASE)-test-$$i; \ echo file: $$f; \ latex $$f ; \ $(DVIPS) -o $$f.ps $$f.dvi; \ $(GV) $$f.ps ; \ done install-sty: ; cp $(BASE).$(EXT) $(CONTRIB) uninstall-sty: ; rm $(CONTRIB)/$(BASE).$(EXT) install-doc: $(BASE).ps cp $(BASE).ps $(DOCDIR) uninstall-doc: ; rm -f $(DOCDIR)/$(BASE).ps clean: -rm -f *.ps *.dtx *.dvi *.log *.aux *.lof *.lot *.toc -rm -f *.idx *.ind *.glo *.gls *~ veryclean: clean -rm -f *.sty *.cls -rm -f *test* ci: $(CI) -f $(SRC) $(CO) -u $(SRC) tar: rm -fr $(TAR_DIR) mkdir $(TAR_DIR) echo "This is \`$(BASE)' Revision: $(CUR_REV), $(CUR_REV_DATE)" > \ THIS-IS-$(BASE)-$(CUR_REV_NR) cp -p $(SRC) THIS-IS-$(BASE)-$(CUR_REV_NR) $(TAR_DIR) $(TAR) -czvf $(TAR_FILE) ./$(TAR_DIR) rm -rf $(TAR_DIR) $(BASE).dtx: $(BASE).doc $(BASE).ins $(LATEX) $(BASE).ins $(BASE).aux: $(BASE).dtx $(BASE).$(EXT) $(LATEX) $(BASE).dtx $(BASE).$(EXT): $(BASE).dtx $(BASE).ins $(LATEX) $(BASE).ins $(BASE).dvi: $(BASE).dtx $(BASE).$(EXT) $(BASE).aux $(LATEX) $(BASE).dtx $(BASE).idx: $(BASE).dtx $(BASE).$(EXT) $(LATEX) $(BASE).dtx $(BASE).ind: $(BASE).idx $(MAKEINDEX) -s gind.ist $(BASE).idx $(BASE).glo: $(BASE).dtx $(BASE).$(EXT) $(LATEX) $(BASE).dtx $(BASE).gls: $(BASE).glo $(MAKEINDEX) -s gglo.ist -o $(BASE).gls $(BASE).glo $(BASE).ps: $(BASE).dvi $(DVIPS) -o $(BASE).ps $(BASE).dvi