blob: ea57673d5fd74fb5e02881fcc00fbf718954e3a8 (
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
|
TEXMF = $(shell kpsewhich -var-value TEXMFLOCAL)
RM = rm -f
PKGNAME = bankstatement
all: doc example
doc:
pdflatex $(PKGNAME)
bibtex $(PKGNAME)
pdflatex $(PKGNAME)
pdflatex $(PKGNAME)
example:
pdflatex $(PKGNAME)-example
pdflatex $(PKGNAME)-example
install: doc
mkdir -p ${TEXMF}/doc/latex/${PKGNAME}
cp README ${TEXMF}/doc/latex/${PKGNAME}/
cp *.txt ${TEXMF}/doc/latex/${PKGNAME}/
cp *.tex ${TEXMF}/doc/latex/${PKGNAME}/
cp *.pdf ${TEXMF}/doc/latex/${PKGNAME}/
mkdir -p ${TEXMF}/tex/latex/${PKGNAME}
cp *.cls ${TEXMF}/tex/latex/${PKGNAME}/
cp *.def ${TEXMF}/tex/latex/${PKGNAME}/
texhash
uninstall:
rm -rf ${TEXMF}/doc/latex/${PKGNAME}
rm -rf ${TEXMF}/tex/latex/${PKGNAME}
texhash
ctan:
./copyCTAN
clean:
$(RM) *.aux *.fdb_latexmk *.fls *.ind *.idx *.ilg *.glo *.gls \
*.log *.lol *.m *.out *.tmp *.toc *.sh *.hd \
*.bbl *.blg *.ins *.txt *.bib
cleanall: clean
$(RM) $(PKGNAME).pdf $(PKGNAME)_example.pdf
.PHONY: all doc install uninstall ctan clean cleanall
|