blob: 667c2424913b92be808588900071bbee0535d81e (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
PACKAGE = BHCexam
########################################################################
## LaTeX2e Makefile
##
## Update the following defines for your local configuration,
##
TEXMFDIR = ~/texmf/tex/latex/BHCexam
GZIP = gzip
XELATEX = xelatex
PDFLATEX = pdflatex
MAKEINDEX = makeindex
########################################################################
## make [all] Generates the class(.cls) file, the configuration(.cfg)
## file and the documentation (.pdf). If you don't have
## the required MAKEINDEX (along with `gglo.ist' and
## `gind.ist'), then change the first dependency
## of "all" from "fullpdf" to "pdf" below.
## make [un]install Install or uninstall the class(.cls) file and
## the configuration(.cfg) file.
## make [very]clean Clean out various auxillary files. "veryclean"
## cleans out more stuff.
########################################################################
## make [full]doc Generate the documentation. The "fulldoc" version
## adds the change log and the cross-references.
## make idx Generate the change log and the cross-references
## (for fulldoc -- requires MAKEINDEX).
## make cls Generate the class(.cls) file and the
## configuration(.cfg) file.
########################################################################
## make test Run test file(s)
## make src Builds a src distribution (.tar.gz) file.
## make distribtion Builds a distribution (.tar.gz) file.
########################################################################
all: veryclean cls fulldoc test clean
install: cls
cp $(PACKAGE).{cls,cfg} $(TEXMFDIR)
uninstall: ; rm $(TEXMFDIR)/$(PACKAGE).{cls,cfg}
clean: ; -rm -f *.dvi *.log *.aux *.lof *.lot *.toc
-rm -f *.idx *.ind *.glo *.gls *.ilg *.out *~
veryclean: ; -rm -f *.dvi *.log *.aux *.lof *.lot *.toc
-rm -f *.idx *.ind *.glo *.gls *.ilg *.out
-rm -f *.idx *.ind *.glo *.gls *.ilg *.out
-rm -f *.sty *.cls *.pdf *pk *.cfg *.tar *~
doc: ; $(XELATEX) $(PACKAGE).dtx
cls: ; $(XELATEX) $(PACKAGE).ins
fulldoc: doc $(PACKAGE).gls $(PACKAGE).ind
$(XELATEX) $(PACKAGE).dtx
src: ; mkdir $(PACKAGE)
cp -p README Makefile $(PACKAGE)
cp -p $(PACKAGE).dtx $(PACKAGE).ins $(PACKAGE)
cp -p test*.tex $(PACKAGE)
tar -cvf $(PACKAGE)-src.tar ./$(PACKAGE)
rm -rf $(PACKAGE)
$(GZIP) -9 $(PACKAGE)-src.tar
distribution: veryclean cls fulldoc test clean
mkdir $(PACKAGE)
cp -p $(PACKAGE).cls $(PACKAGE).cfg $(PACKAGE)
cp -p *.tex $(PACKAGE)
cp -p *.pdf $(PACKAGE)
tar -cvf $(PACKAGE).tar ./$(PACKAGE)
rm -rf $(PACKAGE)
$(GZIP) -9 $(PACKAGE).tar
$(PACKAGE).gls: doc
$(MAKEINDEX) -s gglo.ist -o $(PACKAGE).gls $(PACKAGE).glo
$(PACKAGE).ind: doc
$(MAKEINDEX) -s gind.ist -o $(PACKAGE).ind $(PACKAGE).idx
test: cls
$(XELATEX) test1.tex
$(XELATEX) test1.tex
$(XELATEX) test2.tex
$(XELATEX) test2.tex
$(XELATEX) test3.tex
$(XELATEX) test3.tex
$(XELATEX) test4.tex
$(XELATEX) test4.tex
|