# /usr/local/lib/tex/bibtex/Makefile, Mon Jul  6 12:22:08 1992
# Edit by Nelson H. F. Beebe <beebe@plot79.math.utah.edu>
#=======================================================================
# UNIX Makefile for BibTeX 0.99 styles.
#
# Major targets:
#
# all		prepare .dvi files for every style in the collection
# 		using test.bib and xampl.bib to illustrate the
# 		formatting of various BibTeX entries.
#
# ARCHIVE-FILES	prepare .tar.z, .zip, and .zoo archive files
#
# DVIFILES-TEST	prepare test-*.dvi files
#
# DVIFILES-XAMPL prepare xampl-*.dvi files
#
# PHYSICS-STYLES make ph*.bst files
#
# clean		remove all files that can be regenerated by "make all",
# 		except for the test-*.ltx and xampl-*.ltx test files.
#
# clobber	remove all files that can be regenerated by "make all"
#
# There are many other targets for individual files; see the Makefile
# body below.
#
# [06-Jul-1992]
#=======================================================================

BIBTEX      =	bibtex

CHECKSUM    =	cat >/tmp/bst.2 ; \
		$(HEADER) >/tmp/bst.1 ; \
		cat /tmp/bst.1 /tmp/bst.2 | checksum

CLEANUP     =	/bin/rm /tmp/bst.1 /tmp/bst.2

CPP         =	/lib/cpp -P

COMPRESS    =	compress

# DIST-FILES intentionally excludes the btxhak.*, btxdoc.*, and
# bibtex.* files to keep the size of the distribution archive files
# down.  It is intended that these archive files contain just that
# material need to use and test the various styles files.

DELETE-BLANK-LINES =	grep -v '^[ 	]*$$'

# sed command to delete lines beginning with one percent sign
DELETE-ONE-PERCENT =	/bin/sed -e '/^%$$/d' -e '/^%[^%].*$$/d'

DIST-FILES  =	Makefile index *.bib *.bst *.btx *.doc *.ltx *.sty *.readme

HEADER = (echo "%% =====================================================================" ;\
	echo "%% WARNING: Do NOT edit this file.  It was produced automatically by" ;\
	echo "%% $(PERSONALNAME) <$(USER)@`hostname`>" ;\
	echo "%% from `pwd`/xbtxbst.doc " ;\
	echo "%% on `date`" ;\
	echo "%% =====================================================================")

LATEX       =	latex

MV          =	/bin/mv

PERSONALNAME =	"`ypcat passwd | grep '^'$(USER)':' | awk -F: '{print $$5}'`"

RM          =	/bin/rm -f

SED         =	/bin/sed

SHELL       =	/bin/sh

STYLE       =	plain

STYLES      =	aaai-named abbrv abstract acm agsm alpha amsalpha \
		amsplain annotate annotation apa apalike apalike2 \
		astron authordate1 authordate2 authordate3 authordate4 \
		bbs cbe cell dcu humanbio humannat ieeetr is-abbrv \
		is-alpha is-plain is-unsrt jbact jmb jtb kluwer named \
		namunsrt nar nature newapa phaip phapalik phcpc phiaea \
		phjcp phnf phnflet phpf phppcf phreport phrmp plain \
		plainyr siam unsrt

TAR         =	tar

UNZIP       =	unzip

ZIP         =	zip

ZOO         =	zoo

#=======================================================================

.SUFFIXES:

.SUFFIXES:	.dvi .ltx

.ltx.dvi:
	$(LATEX) $<
	$(BIBTEX) $*
	$(LATEX) $<
	$(LATEX) $<

#=======================================================================

all:	AUTHORDATE DVIFILES-TEST DVIFILES-XAMPL

ARCHIVE-FILES:	bstfiles.tar.z bstfiles.tar-lst bstfiles.zip-lst bstfiles.zoo-lst
	$(RM) bstfiles.tar

AUTHORDATE:	authordate1.dvi authordate2.dvi authordate3.dvi authordate4.dvi

authordate1.dvi:	authordate1.ltx test.bib testadb.ltx

authordate2.dvi:	authordate2.ltx test.bib testadb.ltx

authordate3.dvi:	authordate3.ltx test.bib testadb.ltx

authordate4.dvi:	authordate4.ltx test.bib testadb.ltx

bstfiles.tar:	$(DIST-FILES)
	$(RM) $@
	$(TAR) cf $@ $(DIST-FILES)

bstfiles.tar-lst:	bstfiles.tar
	$(TAR) tvf bstfiles.tar >$@

bstfiles.tar.z:	bstfiles.tar
	$(COMPRESS) <bstfiles.tar >bstfiles.tar.z

bstfiles.zip:	$(DIST-FILES)
	$(RM) $@
	$(ZIP) $@ $(DIST-FILES)

bstfiles.zip-lst:	bstfiles.zip
	$(UNZIP) -v bstfiles.zip >$@

bstfiles.zoo:	$(DIST-FILES)
	$(RM) $@
	$(ZOO) a $@ $(DIST-FILES)

bstfiles.zoo-lst:	bstfiles.zoo
	$(ZOO) v bstfiles.zoo >$@

clean:
	-$(RM) *.aux
	-$(RM) *.blg
	-$(RM) *.dvi
	-$(RM) *.log
	-$(RM) *~
	-$(RM) \#*
	-$(RM) a.out
	-$(RM) core
	-$(RM) authordate*.bbl
	-$(RM) test-*.bbl
	-$(RM) xampl-*.bbl
	-$(RM) bstfiles.tar* bstfiles.zip* bstfiles.zoo*

clobber:	clean
	-$(RM) test-*.ltx
	-$(RM) xampl-*.ltx

DVIFILES-TEST:
	for f in $(STYLES) ; \
	do \
		make STYLE=$$f test-$$f.dvi ;\
	done

DVIFILES-XAMPL:
	for f in $(STYLES) ; \
	do \
		make STYLE=$$f xampl-$$f.dvi ;\
	done

is-abbrv.bst:	xbtxbst.doc
	$(CPP) -DABBRV xbtxbst.doc | \
		$(DELETE-ONE-PERCENT) -e 's/"xbtxbst.doc"/"is-abbrv.bst"/' | \
		$(CHECKSUM) >is-abbrv.bst
	$(CLEANUP)

is-alpha.bst:	xbtxbst.doc
	$(CPP) -DALPHA xbtxbst.doc | \
		$(DELETE-ONE-PERCENT)  -e 's/"xbtxbst.doc"/"is-alpha.bst"/' | \
		$(CHECKSUM) >is-alpha.bst
	$(CLEANUP)

is-plain.bst:	xbtxbst.doc
	$(CPP) -DPLAIN xbtxbst.doc | \
		$(DELETE-ONE-PERCENT)  -e 's/"xbtxbst.doc"/"is-plain.bst"/' | \
		$(CHECKSUM) >is-plain.bst
	$(CLEANUP)

is-unsrt.bst:	xbtxbst.doc
	$(CPP) -DUNSRT xbtxbst.doc | \
		$(DELETE-ONE-PERCENT)  -e 's/"xbtxbst.doc"/"is-unsrt.bst"/' | \
		$(CHECKSUM) >is-unsrt.bst
	$(CLEANUP)

phaip.bst:	phyjfull.btx physics.btx
	$(CPP) -DAIP <physics.btx | $(DELETE-BLANK-LINES) >phaip.bst

phapalik.bst:	phyjfull.btx physics.btx
	$(CPP) -DAPALIKE <physics.btx | $(DELETE-BLANK-LINES) >phapalik.bst

phcpc.bst:	phyjfull.btx physics.btx
	$(CPP) -DCPC <physics.btx | $(DELETE-BLANK-LINES) >phcpc.bst

phiaea.bst:	phyjfull.btx physics.btx
	$(CPP) -DIAEA <physics.btx | $(DELETE-BLANK-LINES) >phiaea.bst

phjcp.bst:	phyjfull.btx physics.btx
	$(CPP) -DJCP <physics.btx | $(DELETE-BLANK-LINES) >phjcp.bst

phnf.bst:	phyjfull.btx physics.btx
	$(CPP) -DNF <physics.btx | $(DELETE-BLANK-LINES) >phnf.bst

phnflet.bst:	phyjfull.btx physics.btx
	$(CPP) -DNFLET <physics.btx | $(DELETE-BLANK-LINES) >phnflet.bst

phpf.bst:	phyjfull.btx physics.btx
	$(CPP) -DPF <physics.btx | $(DELETE-BLANK-LINES) >phpf.bst

phppcf.bst:	phyjfull.btx physics.btx
	$(CPP) -DPPCF <physics.btx | $(DELETE-BLANK-LINES) >phppcf.bst

phreport.bst:	phyjfull.btx physics.btx
	$(CPP) -DREPORT <physics.btx | $(DELETE-BLANK-LINES) >phreport.bst

phrmp.bst:	phyjfull.btx physics.btx
	$(CPP) -DRMP <physics.btx | $(DELETE-BLANK-LINES) >phrmp.bst

PHYSICS-STYLES: phaip.bst phapalik.bst phcpc.bst phiaea.bst phjcp.bst \
		phnf.bst phnflet.bst phpf.bst phppcf.bst phreport.bst \
		phrmp.bst

test-$(STYLE).ltx:	test.ltx $(STYLE).bst
	$(SED) -e 's/{plain}/{'$(STYLE)'}/g' <test.ltx >test-$(STYLE).ltx

# Special rules for styles that require an additional LaTeX style option:

test-aaai-named.dvi:	aaai-named.bst test.ltx authordate1-4.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[authordate1-4]/g' \
		-e 's/{plain}/{'aaai-named'}/g' \
		<test.ltx >/tmp/test-aaai-named.ltx
	$(MV) /tmp/test-aaai-named.ltx .
	$(LATEX) test-aaai-named.ltx
	$(BIBTEX) test-aaai-named
	$(LATEX) test-aaai-named.ltx
	$(LATEX) test-aaai-named.ltx

test-agsm.dvi:	agsm.bst test.ltx harvard.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[harvard]/g' \
		-e 's/{plain}/{'agsm'}/g' \
		<test.ltx >/tmp/test-agsm.ltx
	$(MV) /tmp/test-agsm.ltx .
	$(LATEX) test-agsm.ltx
	$(BIBTEX) test-agsm
	$(LATEX) test-agsm.ltx
	$(LATEX) test-agsm.ltx

test-apa.dvi:	apa.bst test.ltx harvard.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[astron]/g' \
		-e 's/{plain}/{'apa'}/g' \
		<test.ltx >/tmp/test-apa.ltx
	$(MV) /tmp/test-apa.ltx .
	$(LATEX) test-apa.ltx
	$(BIBTEX) test-apa
	$(LATEX) test-apa.ltx
	$(LATEX) test-apa.ltx

test-astron.dvi:	astron.bst test.ltx astron/astron.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[astron]/g' \
		-e 's/{plain}/{'astron'}/g' \
		<test.ltx >/tmp/test-astron.ltx
	$(MV) /tmp/test-astron.ltx .
	$(LATEX) test-astron.ltx
	$(BIBTEX) test-astron
	$(LATEX) test-astron.ltx
	$(LATEX) test-astron.ltx

test-authordate1.dvi:	authordate1.bst test.ltx authordate1-4.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[authordate1-4]/g' \
		-e 's/{plain}/{'authordate1'}/g' \
		<test.ltx >/tmp/test-authordate1.ltx
	$(MV) /tmp/test-authordate1.ltx .
	$(LATEX) test-authordate1.ltx
	$(BIBTEX) test-authordate1
	$(LATEX) test-authordate1.ltx
	$(LATEX) test-authordate1.ltx

test-authordate2.dvi:	authordate2.bst test.ltx authordate1-4.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[authordate1-4]/g' \
		-e 's/{plain}/{'authordate2'}/g' \
		<test.ltx >/tmp/test-authordate2.ltx
	$(MV) /tmp/test-authordate2.ltx .
	$(LATEX) test-authordate2.ltx
	$(BIBTEX) test-authordate2
	$(LATEX) test-authordate2.ltx
	$(LATEX) test-authordate2.ltx

test-authordate3.dvi:	authordate3.bst test.ltx authordate1-4.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[authordate1-4]/g' \
		-e 's/{plain}/{'authordate3'}/g' \
		<test.ltx >/tmp/test-authordate3.ltx
	$(MV) /tmp/test-authordate3.ltx .
	$(LATEX) test-authordate3.ltx
	$(BIBTEX) test-authordate3
	$(LATEX) test-authordate3.ltx
	$(LATEX) test-authordate3.ltx

test-authordate4.dvi:	authordate4.bst test.ltx authordate1-4.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[authordate1-4]/g' \
		-e 's/{plain}/{'authordate4'}/g' \
		<test.ltx >/tmp/test-authordate4.ltx
	$(MV) /tmp/test-authordate4.ltx .
	$(LATEX) test-authordate4.ltx
	$(BIBTEX) test-authordate4
	$(LATEX) test-authordate4.ltx
	$(LATEX) test-authordate4.ltx

test-bbs.dvi:	bbs.bst test.ltx harvard.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[astron]/g' \
		-e 's/{plain}/{'bbs'}/g' \
		<test.ltx >/tmp/test-bbs.ltx
	$(MV) /tmp/test-bbs.ltx .
	$(LATEX) test-bbs.ltx
	$(BIBTEX) test-bbs
	$(LATEX) test-bbs.ltx
	$(LATEX) test-bbs.ltx

test-cbe.dvi:	cbe.bst test.ltx harvard.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[astron]/g' \
		-e 's/{plain}/{'cbe'}/g' \
		<test.ltx >/tmp/test-cbe.ltx
	$(MV) /tmp/test-cbe.ltx .
	$(LATEX) test-cbe.ltx
	$(BIBTEX) test-cbe
	$(LATEX) test-cbe.ltx
	$(LATEX) test-cbe.ltx

test-dcu.dvi:	dcu.bst test.ltx harvard.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[harvard]/g' \
		-e 's/{plain}/{'dcu'}/g' \
		<test.ltx >/tmp/test-dcu.ltx
	$(MV) /tmp/test-dcu.ltx .
	$(LATEX) test-dcu.ltx
	$(BIBTEX) test-dcu
	$(LATEX) test-dcu.ltx
	$(LATEX) test-dcu.ltx

test-humanbio.dvi:	humanbio.bst test.ltx harvard.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[astron]/g' \
		-e 's/{plain}/{'humanbio'}/g' \
		<test.ltx >/tmp/test-humanbio.ltx
	$(MV) /tmp/test-humanbio.ltx .
	$(LATEX) test-humanbio.ltx
	$(BIBTEX) test-humanbio
	$(LATEX) test-humanbio.ltx
	$(LATEX) test-humanbio.ltx

test-humannat.dvi:	humannat.bst test.ltx harvard.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[astron]/g' \
		-e 's/{plain}/{'humannat'}/g' \
		<test.ltx >/tmp/test-humannat.ltx
	$(MV) /tmp/test-humannat.ltx .
	$(LATEX) test-humannat.ltx
	$(BIBTEX) test-humannat
	$(LATEX) test-humannat.ltx
	$(LATEX) test-humannat.ltx

test-jmb.dvi:	jmb.bst test.ltx jmb.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[jmb]/g' \
		-e 's/{plain}/{'jmb'}/g' \
		<test.ltx >/tmp/test-jmb.ltx
	$(MV) /tmp/test-jmb.ltx .
	$(LATEX) test-jmb.ltx
	$(BIBTEX) test-jmb
	$(LATEX) test-jmb.ltx
	$(LATEX) test-jmb.ltx

test-jtb.dvi:	jtb.bst test.ltx harvard.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[astron]/g' \
		-e 's/{plain}/{'jtb'}/g' \
		<test.ltx >/tmp/test-jtb.ltx
	$(MV) /tmp/test-jtb.ltx .
	$(LATEX) test-jtb.ltx
	$(BIBTEX) test-jtb
	$(LATEX) test-jtb.ltx
	$(LATEX) test-jtb.ltx

test-kluwer.dvi:	kluwer.bst test.ltx harvard.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[harvard]/g' \
		-e 's/{plain}/{'kluwer'}/g' \
		<test.ltx >/tmp/test-kluwer.ltx
	$(MV) /tmp/test-kluwer.ltx .
	$(LATEX) test-kluwer.ltx
	$(BIBTEX) test-kluwer
	$(LATEX) test-kluwer.ltx
	$(LATEX) test-kluwer.ltx

test-named.dvi:	named.bst named.sty test.ltx
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[named]/g' \
		-e 's/{plain}/{'named'}/g' \
		<test.ltx >/tmp/test-named.ltx
	$(MV) /tmp/test-named.ltx .
	$(LATEX) test-named.ltx
	$(BIBTEX) test-named
	$(LATEX) test-named.ltx
	$(LATEX) test-named.ltx

test-nar.dvi:	nar.bst test.ltx nar.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[nar]/g' \
		-e 's/{plain}/{'nar'}/g' \
		<test.ltx >/tmp/test-nar.ltx
	$(MV) /tmp/test-nar.ltx .
	$(LATEX) test-nar.ltx
	$(BIBTEX) test-nar
	$(LATEX) test-nar.ltx
	$(LATEX) test-nar.ltx

test-newapa.dvi:	newapa.bst newapa.sty test.ltx apalike.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[apalike,newapa]/g' \
		-e 's/{plain}/{'newapa'}/g' \
		<test.ltx >/tmp/test-newapa.ltx
	$(MV) /tmp/test-newapa.ltx .
	@echo ============================================================
	@echo Expect BibTeX and LaTeX errors here: newapa.bst does not
	@echo correctly handle some of the entries in test.bib.  A solution
	@echo has yet to be identified.
	@echo ============================================================
	$(LATEX) test-newapa.ltx
	$(BIBTEX) test-newapa
	$(LATEX) test-newapa.ltx
	$(LATEX) test-newapa.ltx

xampl-$(STYLE).ltx:	xampl.ltx $(STYLE).bst
	$(SED) -e 's/{plain}/{'$(STYLE)'}/g' <xampl.ltx >xampl-$(STYLE).ltx

# Special rules for styles that require an additional LaTeX style option:

xampl-aaai-named.dvi:	aaai-named.bst xampl.ltx authordate1-4.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[authordate1-4]/g' \
		-e 's/{plain}/{'aaai-named'}/g' \
		<xampl.ltx >/tmp/xampl-aaai-named.ltx
	$(MV) /tmp/xampl-aaai-named.ltx .
	$(LATEX) xampl-aaai-named.ltx
	$(BIBTEX) xampl-aaai-named
	$(LATEX) xampl-aaai-named.ltx
	$(LATEX) xampl-aaai-named.ltx

xampl-agsm.dvi:	agsm.bst xampl.ltx harvard.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[harvard]/g' \
		-e 's/{plain}/{'agsm'}/g' \
		<xampl.ltx >/tmp/xampl-agsm.ltx
	$(MV) /tmp/xampl-agsm.ltx .
	$(LATEX) xampl-agsm.ltx
	$(BIBTEX) xampl-agsm
	$(LATEX) xampl-agsm.ltx
	$(LATEX) xampl-agsm.ltx

xampl-apa.dvi:	apa.bst xampl.ltx harvard.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[astron]/g' \
		-e 's/{plain}/{'apa'}/g' \
		<xampl.ltx >/tmp/xampl-apa.ltx
	$(MV) /tmp/xampl-apa.ltx .
	$(LATEX) xampl-apa.ltx
	$(BIBTEX) xampl-apa
	$(LATEX) xampl-apa.ltx
	$(LATEX) xampl-apa.ltx

xampl-astron.dvi:	astron.bst xampl.ltx astron/astron.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[astron]/g' \
		-e 's/{plain}/{'astron'}/g' \
		<xampl.ltx >/tmp/xampl-astron.ltx
	$(MV) /tmp/xampl-astron.ltx .
	$(LATEX) xampl-astron.ltx
	$(BIBTEX) xampl-astron
	$(LATEX) xampl-astron.ltx
	$(LATEX) xampl-astron.ltx

xampl-authordate1.dvi:	authordate1.bst xampl.ltx authordate1-4.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[authordate1-4]/g' \
		-e 's/{plain}/{'authordate1'}/g' \
		<xampl.ltx >/tmp/xampl-authordate1.ltx
	$(MV) /tmp/xampl-authordate1.ltx .
	$(LATEX) xampl-authordate1.ltx
	$(BIBTEX) xampl-authordate1
	$(LATEX) xampl-authordate1.ltx
	$(LATEX) xampl-authordate1.ltx

xampl-authordate2.dvi:	authordate2.bst xampl.ltx authordate1-4.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[authordate1-4]/g' \
		-e 's/{plain}/{'authordate2'}/g' \
		<xampl.ltx >/tmp/xampl-authordate2.ltx
	$(MV) /tmp/xampl-authordate2.ltx .
	$(LATEX) xampl-authordate2.ltx
	$(BIBTEX) xampl-authordate2
	$(LATEX) xampl-authordate2.ltx
	$(LATEX) xampl-authordate2.ltx

xampl-authordate3.dvi:	authordate3.bst xampl.ltx authordate1-4.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[authordate1-4]/g' \
		-e 's/{plain}/{'authordate3'}/g' \
		<xampl.ltx >/tmp/xampl-authordate3.ltx
	$(MV) /tmp/xampl-authordate3.ltx .
	$(LATEX) xampl-authordate3.ltx
	$(BIBTEX) xampl-authordate3
	$(LATEX) xampl-authordate3.ltx
	$(LATEX) xampl-authordate3.ltx

xampl-authordate4.dvi:	authordate4.bst xampl.ltx authordate1-4.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[authordate1-4]/g' \
		-e 's/{plain}/{'authordate4'}/g' \
		<xampl.ltx >/tmp/xampl-authordate4.ltx
	$(MV) /tmp/xampl-authordate4.ltx .
	$(LATEX) xampl-authordate4.ltx
	$(BIBTEX) xampl-authordate4
	$(LATEX) xampl-authordate4.ltx
	$(LATEX) xampl-authordate4.ltx

xampl-bbs.dvi:	bbs.bst xampl.ltx harvard.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[astron]/g' \
		-e 's/{plain}/{'bbs'}/g' \
		<xampl.ltx >/tmp/xampl-bbs.ltx
	$(MV) /tmp/xampl-bbs.ltx .
	$(LATEX) xampl-bbs.ltx
	$(BIBTEX) xampl-bbs
	$(LATEX) xampl-bbs.ltx
	$(LATEX) xampl-bbs.ltx

xampl-cbe.dvi:	cbe.bst xampl.ltx harvard.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[astron]/g' \
		-e 's/{plain}/{'cbe'}/g' \
		<xampl.ltx >/tmp/xampl-cbe.ltx
	$(MV) /tmp/xampl-cbe.ltx .
	$(LATEX) xampl-cbe.ltx
	$(BIBTEX) xampl-cbe
	$(LATEX) xampl-cbe.ltx
	$(LATEX) xampl-cbe.ltx

xampl-dcu.dvi:	dcu.bst xampl.ltx harvard.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[harvard]/g' \
		-e 's/{plain}/{'dcu'}/g' \
		<xampl.ltx >/tmp/xampl-dcu.ltx
	$(MV) /tmp/xampl-dcu.ltx .
	$(LATEX) xampl-dcu.ltx
	$(BIBTEX) xampl-dcu
	$(LATEX) xampl-dcu.ltx
	$(LATEX) xampl-dcu.ltx

xampl-humanbio.dvi:	humanbio.bst xampl.ltx harvard.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[astron]/g' \
		-e 's/{plain}/{'humanbio'}/g' \
		<xampl.ltx >/tmp/xampl-humanbio.ltx
	$(MV) /tmp/xampl-humanbio.ltx .
	$(LATEX) xampl-humanbio.ltx
	$(BIBTEX) xampl-humanbio
	$(LATEX) xampl-humanbio.ltx
	$(LATEX) xampl-humanbio.ltx

xampl-humannat.dvi:	humannat.bst xampl.ltx harvard.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[astron]/g' \
		-e 's/{plain}/{'humannat'}/g' \
		<xampl.ltx >/tmp/xampl-humannat.ltx
	$(MV) /tmp/xampl-humannat.ltx .
	$(LATEX) xampl-humannat.ltx
	$(BIBTEX) xampl-humannat
	$(LATEX) xampl-humannat.ltx
	$(LATEX) xampl-humannat.ltx

xampl-jmb.dvi:	jmb.bst xampl.ltx jmb.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[jmb]/g' \
		-e 's/{plain}/{'jmb'}/g' \
		<xampl.ltx >/tmp/xampl-jmb.ltx
	$(MV) /tmp/xampl-jmb.ltx .
	$(LATEX) xampl-jmb.ltx
	$(BIBTEX) xampl-jmb
	$(LATEX) xampl-jmb.ltx
	$(LATEX) xampl-jmb.ltx

xampl-jtb.dvi:	jtb.bst xampl.ltx harvard.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[astron]/g' \
		-e 's/{plain}/{'jtb'}/g' \
		<xampl.ltx >/tmp/xampl-jtb.ltx
	$(MV) /tmp/xampl-jtb.ltx .
	$(LATEX) xampl-jtb.ltx
	$(BIBTEX) xampl-jtb
	$(LATEX) xampl-jtb.ltx
	$(LATEX) xampl-jtb.ltx

xampl-kluwer.dvi:	kluwer.bst xampl.ltx harvard.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[harvard]/g' \
		-e 's/{plain}/{'kluwer'}/g' \
		<xampl.ltx >/tmp/xampl-kluwer.ltx
	$(MV) /tmp/xampl-kluwer.ltx .
	$(LATEX) xampl-kluwer.ltx
	$(BIBTEX) xampl-kluwer
	$(LATEX) xampl-kluwer.ltx
	$(LATEX) xampl-kluwer.ltx

xampl-named.dvi:	named.bst named.sty xampl.ltx
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[named]/g' \
		-e 's/{plain}/{'named'}/g' \
		<xampl.ltx >/tmp/xampl-named.ltx
	$(MV) /tmp/xampl-named.ltx .
	$(LATEX) xampl-named.ltx
	$(BIBTEX) xampl-named
	$(LATEX) xampl-named.ltx
	$(LATEX) xampl-named.ltx

xampl-nar.dvi:	nar.bst xampl.ltx nar.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[nar]/g' \
		-e 's/{plain}/{'nar'}/g' \
		<xampl.ltx >/tmp/xampl-nar.ltx
	$(MV) /tmp/xampl-nar.ltx .
	$(LATEX) xampl-nar.ltx
	$(BIBTEX) xampl-nar
	$(LATEX) xampl-nar.ltx
	$(LATEX) xampl-nar.ltx

xampl-newapa.dvi:	newapa.bst newapa.sty xampl.ltx apalike.sty
	$(SED) -e 's/\\documentstyle\[\]/\\documentstyle[apalike,newapa]/g' \
		-e 's/{plain}/{'newapa'}/g' \
		<xampl.ltx >/tmp/xampl-newapa.ltx
	$(MV) /tmp/xampl-newapa.ltx .
	$(LATEX) xampl-newapa.ltx
	$(BIBTEX) xampl-newapa
	$(LATEX) xampl-newapa.ltx
	$(LATEX) xampl-newapa.ltx