summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/bhcexam/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/bhcexam/Makefile')
-rw-r--r--macros/latex/contrib/bhcexam/Makefile88
1 files changed, 88 insertions, 0 deletions
diff --git a/macros/latex/contrib/bhcexam/Makefile b/macros/latex/contrib/bhcexam/Makefile
new file mode 100644
index 0000000000..667c242491
--- /dev/null
+++ b/macros/latex/contrib/bhcexam/Makefile
@@ -0,0 +1,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
+