Add Makefile target to build .sty files
This commit is contained in:
parent
d3bb6054aa
commit
e03afd3924
17
Makefile
17
Makefile
|
@ -1,10 +1,14 @@
|
|||
INS = mtheme.ins
|
||||
DTX = $(wildcard *.dtx)
|
||||
STY = $(patsubst %.dtx,%.sty,$(wildcard beamer*.dtx))
|
||||
TEXMFHOME = $(shell kpsewhich -var-value=TEXMFHOME)
|
||||
INSTALL_DIR = $(TEXMFHOME)/tex/latex/mtheme
|
||||
|
||||
SRC = demo.tex
|
||||
PDF = demo.pdf
|
||||
AUX = demo.aux
|
||||
TEXC := xelatex
|
||||
TEXC_OPTS += -shell-escape
|
||||
TEXMFHOME = $(shell kpsewhich -var-value=TEXMFHOME)
|
||||
INSTALL_DIR = $(TEXMFHOME)/tex/latex/mtheme
|
||||
DOCKER_IMAGE = latex-image
|
||||
DOCKER_CONTAINER = latex-container
|
||||
|
||||
|
@ -18,13 +22,16 @@ $(AUX):
|
|||
$(PDF): beamerthemem.sty $(AUX) $(SRC)
|
||||
$(TEXC) $(TEXC_OPTS) $(SRC)
|
||||
|
||||
sty: $(DTX) $(INS)
|
||||
@latex $(INS)
|
||||
|
||||
clean:
|
||||
@rm -f $(PDF)
|
||||
@git clean -xfd
|
||||
|
||||
install:
|
||||
mkdir -p $(INSTALL_DIR)
|
||||
cp *.sty $(INSTALL_DIR)
|
||||
install: $(STY)
|
||||
@mkdir -p $(INSTALL_DIR)
|
||||
@cp $(STY) $(INSTALL_DIR)
|
||||
|
||||
docker-run: docker-build
|
||||
docker run --rm=true --name $(DOCKER_CONTAINER) -i -t -v `pwd`:/data $(DOCKER_IMAGE) /data/build.sh
|
||||
|
|
Loading…
Reference in New Issue