Allow installation in any directory

This enables:
    make DESTDIR=xxxx install
to install mtheme in xxxx/tex/latex and the documentation in xxxx/doc/latex.
This commit is contained in:
Luc J. Bourhis 2015-10-19 18:55:48 +02:00
parent 8e44f7205e
commit 0a18f1979c
1 changed files with 3 additions and 3 deletions

View File

@ -8,9 +8,9 @@ DOC_PDF = doc/metropolistheme.pdf
CTAN_CONTENT = $(INS) $(PACKAGE_SRC) $(DOC_PDF)
TEXMFHOME = $(shell kpsewhich -var-value=TEXMFHOME)
INSTALL_DIR = $(TEXMFHOME)/tex/latex/mtheme
DOC_DIR = $(TEXMFHOME)/doc/latex/mtheme
DESTDIR ?= $(shell kpsewhich -var-value=TEXMFHOME)
INSTALL_DIR = $(DESTDIR)/tex/latex/mtheme
DOC_DIR = $(DESTDIR)/doc/latex/mtheme
CACHE_DIR := $(shell pwd)/.latex-cache
COMPILE_TEX := latexmk -xelatex -output-directory=$(CACHE_DIR)