diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/getmap/makefile')
-rw-r--r-- | Master/texmf-dist/doc/latex/getmap/makefile | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/getmap/makefile b/Master/texmf-dist/doc/latex/getmap/makefile new file mode 100644 index 00000000000..59d77b47347 --- /dev/null +++ b/Master/texmf-dist/doc/latex/getmap/makefile @@ -0,0 +1,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 |