summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/combinedgraphics/Makefile
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/combinedgraphics/Makefile
Initial commit
Diffstat (limited to 'macros/latex/contrib/combinedgraphics/Makefile')
-rw-r--r--macros/latex/contrib/combinedgraphics/Makefile81
1 files changed, 81 insertions, 0 deletions
diff --git a/macros/latex/contrib/combinedgraphics/Makefile b/macros/latex/contrib/combinedgraphics/Makefile
new file mode 100644
index 0000000000..29763aaedb
--- /dev/null
+++ b/macros/latex/contrib/combinedgraphics/Makefile
@@ -0,0 +1,81 @@
+#
+# Makefile for combinedgraphics package
+#
+# Copyright 2009,2011,2012 Christian Schneider <software(at)chschneider(dot)eu>
+#
+# This file is part of combinedgraphics.
+#
+# combinedgraphics 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.
+#
+# combinedgraphics 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 combinedgraphics. If not, see <http://www.gnu.org/licenses/>.
+#
+# WARNING: THIS IS ALPHA SOFTWARE AND MAY CONTAIN SERIOUS BUGS!
+#
+
+export PACKAGE := combinedgraphics
+
+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 $<
+
+pkg: $(PACKAGE).sty
+
+doc: $(PACKAGE).pdf
+
+test: $(PACKAGE).sty
+ $(MAKE) -C test
+
+install:
+ mkdir -p $(DOCDIR) $(SRCDIR) $(TEXDIR)
+ install -m 644 README COPYING $(PACKAGE).pdf $(DOCDIR)
+ install -m 644 $(PACKAGE).ins $(PACKAGE).dtx Makefile $(SRCDIR)
+ install -m 644 $(PACKAGE).sty $(TEXDIR)
+ $(MAKE) -C test install
+ mktexlsr $(DESTDIR)
+
+clean:
+ $(RM) *.aux *.glo *.gls *.idx *.ilg *.ind *.log *.toc *~
+ $(MAKE) -C test clean
+
+distclean: clean
+ $(RM) $(PACKAGE).sty
+ $(MAKE) -C test distclean
+
+mrproper: distclean
+ $(RM) $(PACKAGE).pdf
+ $(MAKE) -C test mrproper