summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pbox/Makefile
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-11-25 23:25:24 +0000
committerKarl Berry <karl@freefriends.org>2011-11-25 23:25:24 +0000
commita0f3f9a256d2ffc50ee165b8ca1da44e59bfc7ff (patch)
tree7e29ff18ae9b1c22e88705db2b5f6450be366dd5 /Master/texmf-dist/doc/latex/pbox/Makefile
parentb12eb2487db744627b0577ce2daa4a7335973ddb (diff)
pbox (25nov11)
git-svn-id: svn://tug.org/texlive/trunk@24664 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/pbox/Makefile')
-rw-r--r--Master/texmf-dist/doc/latex/pbox/Makefile94
1 files changed, 94 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/pbox/Makefile b/Master/texmf-dist/doc/latex/pbox/Makefile
new file mode 100644
index 00000000000..606dfd81c9a
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/pbox/Makefile
@@ -0,0 +1,94 @@
+## Makefile - Makefile for the pbox package.
+## Copyright (C) 2003 Simon Law
+##
+## This program is free software: you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation, either version 3 of the License, or
+## (at your option) any later version.
+##
+## This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
+##
+
+# Set the package name
+PACKAGE = pbox
+
+# Use pdfLaTeX for best results
+LATEX = pdflatex
+LATEX2DVI = $(LATEX) \\pdfoutput=0 \\input
+LATEX2PDF = $(LATEX) \\pdfoutput=1 \\input
+
+# MakeIndex parameters
+MAKEINDEX = makeindex
+GIND = gind.ist
+GGLO = gglo.ist
+
+# Installation
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = $(INSTALL) -m 644
+DESTDIR = .
+TDSFORMAT = latex/
+
+# Shell
+RM = rm -f
+
+TEXFILES=\
+ $(PACKAGE).aux\
+ $(PACKAGE).drv\
+ $(PACKAGE).dvi\
+ $(PACKAGE).glo\
+ $(PACKAGE).gls\
+ $(PACKAGE).idx\
+ $(PACKAGE).ilg\
+ $(PACKAGE).ind\
+ $(PACKAGE).log\
+ $(PACKAGE).pdf\
+ $(PACKAGE).sty
+
+.PHONY : all install uninstall dvi pdf clean
+
+all : $(PACKAGE).sty $(PACKAGE).dvi $(PACKAGE).pdf ;
+
+install : all
+ $(INSTALL) -d $(DESTDIR)/texmf/tex/$(TDSFORMAT)/$(PACKAGE)
+ $(INSTALL) -d $(DESTDIR)/texmf/doc/$(TDSFORMAT)/$(PACKAGE)
+ $(INSTALL_DATA) $(PACKAGE).sty $(DESTDIR)/texmf/tex/$(TDSFORMAT)/$(PACKAGE)/
+ $(INSTALL_DATA) $(PACKAGE).dvi $(DESTDIR)/texmf/doc/$(TDSFORMAT)/$(PACKAGE)/
+ $(INSTALL_DATA) $(PACKAGE).pdf $(DESTDIR)/texmf/doc/$(TDSFORMAT)/$(PACKAGE)/
+
+uninstall : all
+ $(RM) $(DESTDIR)/texmf/tex/$(TDSFORMAT)/$(PACKAGE)/$(PACKAGE).sty
+ $(RM) $(DESTDIR)/texmf/doc/$(TDSFORMAT)/$(PACKAGE)/$(PACKAGE).dvi
+ $(RM) $(DESTDIR)/texmf/doc/$(TDSFORMAT)/$(PACKAGE)/$(PACKAGE).pdf
+ ls $(DESTDIR)/texmf/tex/$(TDSFORMAT)/$(PACKAGE)/* >/dev/null 2>&1 \
+ || $(RM) -r $(DESTDIR)/texmf/tex/$(TDSFORMAT)/$(PACKAGE)
+ ls $(DESTDIR)/texmf/doc/$(PACKAGE)/* >/dev/null 2>&1 \
+ || $(RM) -r $(DESTDIR)/texmf/doc/$(TDSFORMAT)/$(PACKAGE)
+
+dvi : $(PACKAGE).dvi
+
+pdf : $(PACKAGE).pdf
+
+%.sty : %.ins %.dtx
+ $(LATEX) $<
+
+%.dvi : %.dtx %.sty
+ $(LATEX2DVI) $<
+ $(MAKEINDEX) -s $(GIND) $*.idx
+ $(MAKEINDEX) -s $(GGLO) -o $*.gls $*.glo
+ $(LATEX2DVI) $<
+
+%.pdf : %.dtx %.sty
+ $(LATEX2PDF) $<
+ $(MAKEINDEX) -s $(GIND) $*.idx
+ $(MAKEINDEX) -s $(GGLO) -o $*.gls $*.glo
+ $(LATEX2DVI) $<
+
+
+clean :
+ $(RM) $(TEXFILES)