Ignore boring things.
[doc/texmf] / Makefile
CommitLineData
0395bec3
MW
1## Makefile for texmf stuff
2
38e062db
MW
3texmf = $(HOME)/texmf
4bibtexdir = $(texmf)/bibtex
5bibdir = $(bibtexdir)/bib
6bstdir = $(bibtexdir)/bst
7texdir = $(texmf)/tex
8latexdir = $(texdir)/latex
9
10default: all
11
0395bec3 12INSTALL_TARGETS = \
38e062db
MW
13 $(latexdir)/po.sty \
14 $(latexdir)/babelbst.tex $(bstdir)/mdwalpha.bst \
15 $(bibdir)/mdw-crypto.bib $(bibdir)/mdw-crypto.bix
16
0395bec3 17install: $(INSTALL_TARGETS) $(texmf)/ls-R
38e062db
MW
18all: babelbst.tex mdwalpha.bst mdw-crypto.bix
19
0395bec3 20$(texmf)/ls-R: $(INSTALL_TARGETS); mktexlsr $(texmf)
38e062db
MW
21$(texdir) $(latexdir) $(bibtexdir) $(bibdir) $(bstdir): %:; mkdir -p $@
22$(latexdir)/%: % $(latexdir); cp $< $@
23$(bibdir)/%: % $(bibdir); cp $< $@
24$(bstdir)/%: % $(bstdir); cp $< $@
25%.bix: %.bib; bibindex $<
26
27babelbst.tex mdwalpha.bst: mdwalpha.dbj
28 rm -f babelbst.tex mdwalpha.bst
29 tex '\let\ifbatching\iftrue \input mdwalpha.dbj'
30
31clean:; rm -f mdwalpha.bst babelbst.tex *.log *.bix
0395bec3
MW
32
33.PHONY: all install clean