| 1 |
# Makefile for the LaTeX2e class `acmconf' |
| 2 |
# Copyright (C)1999, Dr. Juergen Vollmer, all rights reserved. |
| 3 |
# Dr. Juergen Vollmer, Viktoriastrasse 15, D-76133 Karlsruhe, Germany |
| 4 |
# [email protected] |
| 5 |
# $Id: Makefile,v 1.18 2000/05/18 17:14:51 vollmer Exp $ |
| 6 |
|
| 7 |
BASE = acmconf |
| 8 |
VERSION = 1.3 |
| 9 |
V_DATE = May 18, 2000 |
| 10 |
VV_DATE = 2000/05/18 |
| 11 |
|
| 12 |
DVIPS = dvips |
| 13 |
XDVI = xdvi |
| 14 |
GZIP = gzip |
| 15 |
LATEX = latex |
| 16 |
BIBTEX = bibtex |
| 17 |
MAKEINDEX = makeindex |
| 18 |
GV = gv |
| 19 |
|
| 20 |
# some command to print DVI files |
| 21 |
PRINT = print -2 |
| 22 |
|
| 23 |
#-------- user configuration section |
| 24 |
TEX_DIR = /usr/lib/teTeX/texmf |
| 25 |
CLS_DIR = $(TEX_DIR)/tex/latex/misc |
| 26 |
STY_DIR = $(TEX_DIR)/tex/latex/misc |
| 27 |
CFG_DIR = $(TEX_DIR)/tex/latex/config |
| 28 |
DOC_DIR = $(TEX_DIR)/doc/latex/acmconf |
| 29 |
SRC_DIR = $(TEX_DIR)/source/latex/acmconf |
| 30 |
#-------- end of user configuration section |
| 31 |
|
| 32 |
DATE = `date +%Y-%m-%d` |
| 33 |
DATE2 = `date +%Y/%m/%d` |
| 34 |
TAR_BAK = $(BASE)-$(DATE)-backup.tar.gz |
| 35 |
TAR_SRC = $(BASE)-$(DATE)-source.tar.gz |
| 36 |
TAR_DIST = $(BASE)-$(VERSION).tar.gz |
| 37 |
EX = --exclude "*.o" --exclude core --exclude "*.tar.gz" --exclude "*~" \ |
| 38 |
--exclude "*.a" |
| 39 |
EXrcs = $(EX) --exclude "*/RCS/*" --exclude "*/RCS" |
| 40 |
|
| 41 |
.PHONY: all print clean realclean diff backup src-tar |
| 42 |
|
| 43 |
all: $(BASE).cls $(BASE).ps test clean |
| 44 |
|
| 45 |
print: $(BASE).cls |
| 46 |
for f in prepare submit accept publish print pubform; \ |
| 47 |
do \ |
| 48 |
$(LATEX) $$f ; \ |
| 49 |
$(BIBTEX) $$f ; \ |
| 50 |
$(LATEX) $$f ; \ |
| 51 |
$(PRINT) $$f.dvi; \ |
| 52 |
done |
| 53 |
$(LATEX) acmconf.dtx |
| 54 |
$(LATEX) acmconf.dtx |
| 55 |
$(PRINT) acmconf.ins |
| 56 |
|
| 57 |
%.cls: %.dtx |
| 58 |
$(LATEX) $*.ins |
| 59 |
|
| 60 |
%.dvi: %.dtx |
| 61 |
$(LATEX) $*.dtx |
| 62 |
makeindex -s gind.ist -o $*.ind $*.idx |
| 63 |
makeindex -s gglo.ist -o $*.gls $*.glo |
| 64 |
$(LATEX) $*.dtx |
| 65 |
|
| 66 |
%.dvi: %.tex |
| 67 |
$(LATEX) $*.tex |
| 68 |
$(LATEX) $*.tex |
| 69 |
|
| 70 |
%.ps: %.dvi |
| 71 |
$(DVIPS) -o $*.ps $*.dvi |
| 72 |
|
| 73 |
test: $(BASE).cls |
| 74 |
for f in prepare submit accept publish print pubform ; \ |
| 75 |
do \ |
| 76 |
$(LATEX) $$f ; \ |
| 77 |
$(BIBTEX) $$f ; \ |
| 78 |
$(LATEX) $$f ; \ |
| 79 |
$(XDVI) $$f.dvi; \ |
| 80 |
done |
| 81 |
@echo |
| 82 |
@echo "==============================================" |
| 83 |
@echo |
| 84 |
@echo "now some errors should occur" |
| 85 |
@echo |
| 86 |
$(LATEX) -interaction="nonstopmode" error.tex |
| 87 |
|
| 88 |
install: $(BASE).cls $(BASE).dvi $(BASE).ps |
| 89 |
[ -d $(TEX_DIR) ] || mkdir $(TEX_DIR) |
| 90 |
[ -d $(DOC_DIR) ] || mkdir $(DOC_DIR) |
| 91 |
[ -d $(SRC_DIR) ] || mkdir $(SRC_DIR) |
| 92 |
[ -d $(CLS_DIR) ] || mkdir $(CLS_DIR) |
| 93 |
cp $(BASE).cls $(CLS_DIR) |
| 94 |
cp $(BASE).sty $(STY_DIR) |
| 95 |
cp $(BASE).dtx $(DOC_DIR) |
| 96 |
cp $(BASE).dvi $(DOC_DIR) |
| 97 |
cp $(BASE).ps $(DOC_DIR) |
| 98 |
cp $(BASE).ins $(SRC_DIR) |
| 99 |
cp README $(SRC_DIR) |
| 100 |
cp THIS-IS-VERSION-$(VERSION) $(SRC_DIR) |
| 101 |
|
| 102 |
uninstall: |
| 103 |
rm -f $(CLS_DIR)/$(BASE).sty |
| 104 |
rm -fr $(DOC_DIR) |
| 105 |
rm -fr $(SRC_DIR) |
| 106 |
|
| 107 |
clean: |
| 108 |
-rm -f core *~ |
| 109 |
-rm -f *.log *.aux *.lof *.lot *.toc |
| 110 |
-rm -f *.idx *.ind *.glo *.gls *.ilg |
| 111 |
-rm -f *.blg *.bbl |
| 112 |
|
| 113 |
realclean: clean |
| 114 |
-rm -f *.sty *.cls *.ps *.dvi *.cfg |
| 115 |
-rm -f prepare.tex submit.tex accept.tex publish.tex print.tex |
| 116 |
-rm -f error.tex body.eps pubform.tex pubform.bib |
| 117 |
|
| 118 |
src-tar: |
| 119 |
$(MAKE) realclean |
| 120 |
@cd ..; tar $(EXrcs) -czvf $(BASE)/$(TAR_SRC) $(BASE) |
| 121 |
|
| 122 |
dist: |
| 123 |
rm -f THIS-IS-VERSION-* |
| 124 |
co -l $(BASE).dtx $(BASE).ins README Makefile |
| 125 |
@rm -f .xxx; cp $(BASE).dtx .xxx |
| 126 |
@sed < .xxx -e 's/\(^% \\date{\).*}/\1$(V_DATE); Version $(VERSION)}/'\ |
| 127 |
-e 's|\(^ *\\ProvidesClass{$(BASE)}\)\[.*\]|\1[$(VV_DATE) v$(VERSION) ACM Conference Papers]|' \ |
| 128 |
> $(BASE).dtx |
| 129 |
@rm -f .xxx; cp $(BASE).ins .xxx |
| 130 |
@sed < .xxx -e 's/\(Version:\) *[0-9]*\.[0-9]*.*}/\1 $(VERSION); $(V_DATE)}/' \ |
| 131 |
> $(BASE).ins |
| 132 |
@rm -f .xxx; cp README .xxx |
| 133 |
@sed < .xxx -e 's/\(Version:\) *[0-9]*\.[0-9]*.*$$/\1 $(VERSION); $(V_DATE)/' \ |
| 134 |
> README |
| 135 |
V=`echo $(VERSION)-$(VV_DATE) | sed -e 's|\.|-|g' -e's|/|-|g'`; \ |
| 136 |
ci -u -N"VERSION-$$V" -m"Distribution" \ |
| 137 |
$(BASE).ins $(BASE).dtx Makefile README |
| 138 |
- $(MAKE) realclean all |
| 139 |
@echo "VERSION $(VERSION) DATE=$(V_DATE)" > THIS-IS-VERSION-$(VERSION) |
| 140 |
@cd ..; tar $(EXrcs) -czvf $(BASE)/$(TAR_DIST) \ |
| 141 |
$(BASE)/$(BASE).ins \ |
| 142 |
$(BASE)/$(BASE).dtx \ |
| 143 |
$(BASE)/Makefile \ |
| 144 |
$(BASE)/README \ |
| 145 |
$(BASE)/THIS-IS-VERSION-$(VERSION) |
| 146 |
rm -f .xxx |