diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/tikz-page/Makefile')
-rw-r--r-- | Master/texmf-dist/doc/latex/tikz-page/Makefile | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/tikz-page/Makefile b/Master/texmf-dist/doc/latex/tikz-page/Makefile new file mode 100644 index 00000000000..79df540a65b --- /dev/null +++ b/Master/texmf-dist/doc/latex/tikz-page/Makefile @@ -0,0 +1,49 @@ +## + + +export TEXMFHOME="~/texmf:" +PACKAGE = tikz-page + +cleanext := $(wildcard *.dvi *.aux *.glo *.ilg *.ind *.toc *.hd *.idx *.listing *.log *.out _minted-*) + +listings := $(wildcard $(PACKAGE)-*.tex wildcard $(PACKAGE)-*.md5 wildcard $(PACKAGE)-*.pdf) + +objects := $(PACKAGE).sty $(PACKAGE).pdf + +LATEX := $(shell which latex) +PDFLATEX := $(shell which pdflatex) +PANDOC := $(shell which pandoc) + +CTANDIR := $(PACKAGE) +CTANDIST = Makefile README.md README \ + tikz-page.pdf tikz-page.dtx tikz-page.sty \ + example.png + +all: $(objects) README + +%.sty: %.dtx + $(RM) -f $@ + $(LATEX) '\let\install=y\input{$<}' + +%.pdf: %.dtx + TEXMFHOME="~/texmf:" $(PDFLATEX) -shell-escape $< + makeindex -s gind.ist $(PACKAGE).idx + TEXMFHOME="~/texmf:" $(PDFLATEX) -shell-escape $< + #$(PDFLATEX) -shell-escape $< + +clean: + $(RM) -fr $(cleanext) $(listings) $(PACKAGE).zip + +distclean: clean + $(RM) -f $(objects) README $(CTANDIR) + +README: README.md + $(PANDOC) -t plain -o $@ $< + +CTAN: all README clean + mkdir -p $(CTANDIR) + cp $(CTANDIST) $(CTANDIR) + zip -ll -q -r -X $(CTANDIR).zip $(CTANDIR) + + +.PHONY: %.dty |