Fix #91: add `ctan` target to Makefile

Detecting the version number is currently not possible, thus the archive is
named "mtheme-.zip".
This commit is contained in:
Matthias Vogelgesang 2015-06-17 13:36:57 +02:00
parent 5e7b85a1b1
commit 0d0db4d427
1 changed files with 7 additions and 2 deletions

View File

@ -14,6 +14,8 @@ MANUAL_SRC = mtheme.dtx
MANUAL_PDF = mtheme.pdf
TEXC := latexmk -xelatex -output-directory=$(TEMP_DIR)
CTAN_CONTENT = $(INS) $(DTX) $(MANUAL_PDF)
DOCKER_IMAGE = latex-image
DOCKER_CONTAINER = latex-container
@ -39,8 +41,11 @@ manual: $(MANUAL_PDF)
demo: $(DEMO_PDF)
ctan:
@echo Not yet implemented.
ctan: $(CTAN_CONTENT)
@mkdir -p mtheme
@cp $(CTAN_CONTENT) mtheme/
@zip -q mtheme-$(shell grep -A1 ProvidesPackage < beamerthemem.dtx | grep -P -o '\d\.\d\.\d').zip mtheme/*
@rm -rf mtheme
clean:
@git clean -xfd