From 4dac620f0452dcd022c70864b38cb3cdbf6bf534 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Mon, 1 Dec 2014 22:37:51 +0100 Subject: [PATCH] Add install target and update README --- Makefile | 8 +++++++- README.md | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 48b5b41..5539820 100644 --- a/Makefile +++ b/Makefile @@ -3,8 +3,10 @@ PDF = demo.pdf AUX = demo.aux TEXC := xelatex TEXC_OPTS += -shell-escape +TEXMFHOME = $(shell kpsewhich -var-value=TEXMFHOME) +INSTALL_DIR = $(TEXMFHOME)/tex/latex/mtheme -.PHONY: clean +.PHONY: clean install all: $(PDF) @@ -17,3 +19,7 @@ $(PDF): beamerthemem.sty $(AUX) $(SRC) clean: @rm -f $(PDF) @git clean -xf + +install: + mkdir -p $(INSTALL_DIR) + cp *.sty $(INSTALL_DIR) diff --git a/README.md b/README.md index f89ea60..ead95f1 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,9 @@ Depending on the Linux distribution, the packaged name of Fira Sans might be `Fira Sans OT` instead of `Fira Sans`. In that case, you may have to edit `beamerfontthememetropolis.sty`. +To install the theme either run `make install` or copy the style files ending +with `.sty` to the source files of your presentation. + ### Package options