blob: 59d77b473477434ab06d09c8b15bf165e95550bb (
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
|
TEXMF = $(shell kpsewhich -var-value TEXMFLOCAL)
BINDIR = /usr/local/bin
RM = rm -f
PKGNAME = getmap
all: doc
doc: $(PKGNAME).pdf package
$(PKGNAME).pdf:
pdflatex $(PKGNAME).dtx
bibtex $(PKGNAME)
makeindex -s gind.ist $(PKGNAME)
makeindex -s gglo.ist $(PKGNAME).glo -o $(PKGNAME).gls
pdflatex $(PKGNAME).dtx
bibtex $(PKGNAME)
makeindex -s gind.ist $(PKGNAME)
makeindex -s gglo.ist $(PKGNAME).glo -o $(PKGNAME).gls
pdflatex $(PKGNAME).dtx
package:
pdftex $(PKGNAME).dtx
mv osmimage.sh osmimage
mv README.txt README
install: doc
mkdir -p ${TEXMF}/doc/latex/${PKGNAME}
cp README ${TEXMF}/doc/latex/${PKGNAME}/
cp *.txt ${TEXMF}/doc/latex/${PKGNAME}/
cp *.dtx ${TEXMF}/doc/latex/${PKGNAME}/
cp *.pdf ${TEXMF}/doc/latex/${PKGNAME}/
mkdir -p ${TEXMF}/tex/latex/${PKGNAME}
cp *.sty ${TEXMF}/tex/latex/${PKGNAME}/
mkdir -p ${TEXMF}/scripts/${PKGNAME}
cp osmimage.lua osmimage ${TEXMF}/scripts/${PKGNAME}/
texhash
chmod 0755 ${TEXMF}/scripts/${PKGNAME}/osmimage.lua
ln -s ${TEXMF}/scripts/${PKGNAME}/osmimage.lua ${BINDIR}/osmimage
uninstall:
rm -rf ${TEXMF}/doc/latex/${PKGNAME}
rm -rf ${TEXMF}/tex/latex/${PKGNAME}
rm -rf ${TEXMF}/scripts/${PKGNAME}
rm -f ${BINDIR}/osmimage
texhash
styles: package
cp *.sty ${TEXMF}/tex/latex/${PKGNAME}/
git: package
cp osmimage ./../dev/scripts/getmap/osmimage
cp osmimage.lua ./../dev/scripts/getmap/osmimage.lua
cp getmap.sty ./../dev/tex/latex/getmap/getmap.sty
ctan:
./copyCTAN
clean:
$(RM) *.aux *.fdb_latexmk *.fls *.ind *.idx *.ilg *.glo *.gls \
*.log *.lol *.m *.out *.tmp *.toc *.sty *.sh *.hd \
*.bbl *.blg *.ins *.txt *.bib
cleanall: clean
$(RM) osmimage osmimage.lua README
.PHONY: all doc package install uninstall styles git ctan clean cleanall
|