summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/ionumbers/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/ionumbers/Makefile')
-rw-r--r--Master/texmf-dist/doc/latex/ionumbers/Makefile82
1 files changed, 82 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/ionumbers/Makefile b/Master/texmf-dist/doc/latex/ionumbers/Makefile
new file mode 100644
index 00000000000..caef2d61f8d
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/ionumbers/Makefile
@@ -0,0 +1,82 @@
+#
+# Makefile for ionumbers package
+#
+# Copyright 2008,2011 Christian Schneider <software(at)chschneider(dot)eu>
+#
+# This file is part of ionumbers.
+#
+# ionumbers is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 3 as
+# published by the Free Software Foundation, not any later version.
+#
+# ionumbers is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with ionumbers. If not, see <http://www.gnu.org/licenses/>.
+#
+# WARNING: THIS IS ALPHA SOFTWARE AND MAY CONTAIN SERIOUS BUGS!
+#
+
+PACKAGE := ionumbers
+TESTFILE := ionumbers_test
+
+PDFLATEX := pdflatex
+MAKEINDEX := makeindex
+
+# installation directories
+DESTDIR := $(HOME)/.texmf
+DOCDIR := $(DESTDIR)/doc/latex/$(PACKAGE)
+SRCDIR := $(DESTDIR)/source/latex/$(PACKAGE)
+TEXDIR := $(DESTDIR)/tex/latex/$(PACKAGE)
+
+.PHONY: all pkg doc test install clean distclean force
+
+all: pkg doc test
+
+%.sty: %.ins %.dtx
+ $(RM) $@
+ $(PDFLATEX) -interaction=nonstopmode $<
+
+%.idx %.glo: %.dtx %.sty
+ $(PDFLATEX) -interaction=nonstopmode $<
+
+%.ind: %.idx
+ $(MAKEINDEX) -s gind.ist -o $@ $<
+
+%.gls: %.glo
+ $(MAKEINDEX) -s gglo.ist -o $@ $<
+
+$(PACKAGE).pdf: %.pdf: %.dtx %.sty %.ind %.gls
+ $(PDFLATEX) -interaction=nonstopmode $<
+ $(PDFLATEX) -interaction=nonstopmode $<
+ $(PDFLATEX) -interaction=nonstopmode $<
+
+$(TESTFILE).pdf: %.pdf: %.tex $(PACKAGE).sty
+ $(PDFLATEX) -interaction=nonstopmode $<
+ $(PDFLATEX) -interaction=nonstopmode $<
+ $(PDFLATEX) -interaction=nonstopmode $<
+
+pkg: $(PACKAGE).sty
+
+test: $(TESTFILE).pdf
+
+doc: $(PACKAGE).pdf
+
+install: force
+ mkdir -p $(DOCDIR) $(SRCDIR) $(TEXDIR)
+ install -m 644 README COPYING $(PACKAGE).pdf $(TESTFILE).pdf $(DOCDIR)
+ install -m 644 $(PACKAGE).ins $(PACKAGE).dtx $(TESTFILE).tex Makefile \
+ $(SRCDIR)
+ install -m 644 $(PACKAGE).sty $(TEXDIR)
+ mktexlsr $(DESTDIR)
+
+clean: force
+ $(RM) *.aux *.glo *.gls *.idx *.ilg *.ind *.log *.toc *~
+
+distclean: clean force
+ $(RM) $(PACKAGE).sty $(PACKAGE).pdf $(TESTFILE).pdf
+
+force: ;