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