From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- macros/latex/contrib/marginfit/Makefile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 macros/latex/contrib/marginfit/Makefile (limited to 'macros/latex/contrib/marginfit/Makefile') diff --git a/macros/latex/contrib/marginfit/Makefile b/macros/latex/contrib/marginfit/Makefile new file mode 100644 index 0000000000..e17ed57f76 --- /dev/null +++ b/macros/latex/contrib/marginfit/Makefile @@ -0,0 +1,33 @@ + +PACKAGE := marginfit + +TEXMFDIST:=$(shell kpsewhich -var-value TEXMFDIST) + +all: sty doc + +sty: $(PACKAGE).sty +$(PACKAGE).sty: $(PACKAGE).dtx $(PACKAGE).ins + pdflatex ${PACKAGE}.ins + +doc: $(PACKAGE).pdf +$(PACKAGE).pdf: $(PACKAGE).dtx + pdflatex ${PACKAGE}.dtx + makeindex -s gind.ist -o $(PACKAGE).ind $(PACKAGE).idx + makeindex -s gglo.ist -o $(PACKAGE).gls $(PACKAGE).glo + pdflatex ${PACKAGE}.dtx + pdflatex ${PACKAGE}.dtx + +install: $(PACKAGE).dtx $(PACKAGE).ins $(PACKAGE).sty README $(PACKAGE).pdf + install -m 755 -d $(TEXMFDIST)/source/latex/$(PACKAGE) + install -m 644 -t $(TEXMFDIST)/source/latex/$(PACKAGE) $(PACKAGE).dtx + install -m 644 -t $(TEXMFDIST)/source/latex/$(PACKAGE) $(PACKAGE).ins + install -m 755 -d $(TEXMFDIST)/tex/latex/$(PACKAGE) + install -m 644 -t $(TEXMFDIST)/tex/latex/$(PACKAGE) $(PACKAGE).sty + install -m 755 -d $(TEXMFDIST)/doc/latex/$(PACKAGE) + install -m 644 -t $(TEXMFDIST)/doc/latex/$(PACKAGE) README + install -m 644 -t $(TEXMFDIST)/doc/latex/$(PACKAGE) $(PACKAGE).pdf + +dist: $(PACKAGE).tar.gz +$(PACKAGE).tar.gz: Makefile README $(PACKAGE).dtx $(PACKAGE).ins $(PACKAGE).pdf + tar -cjf $@ --transform "s#^#$(PACKAGE)/#" $^ + -- cgit v1.2.3