summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/footnpag/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/footnpag/Makefile
Initial commit
Diffstat (limited to 'macros/latex/contrib/footnpag/Makefile')
-rw-r--r--macros/latex/contrib/footnpag/Makefile62
1 files changed, 62 insertions, 0 deletions
diff --git a/macros/latex/contrib/footnpag/Makefile b/macros/latex/contrib/footnpag/Makefile
new file mode 100644
index 0000000000..9d047c2209
--- /dev/null
+++ b/macros/latex/contrib/footnpag/Makefile
@@ -0,0 +1,62 @@
+# $Id: Makefile,v 2.1 1995/08/04 02:04:08 schrod Exp $
+#----------------------------------------------------------------------
+
+default:: install
+
+
+#
+# installation
+#
+
+# root of TDS compliant installation
+
+ TEXMF = /usr/local/lib/texmf
+
+# installation target directories
+# (No need to change here for TDS installations.)
+
+ LATEX = $(TEXMF)/tex/latex
+ FOOTNPAG = $(LATEX)/misc
+
+ LATEX_DOC = $(TEXMF)/doc/latex
+ FOOTNPAG_DOC = styles
+
+
+# installation actions
+
+.PHONY: install
+
+install:: $(LATEX) $(LATEX_DOC)
+ test -d $(FOOTNPAG) || mkdir $(FOOTNPAG)
+ cp *.sty $(FOOTNPAG)
+ cd $(LATEX_DOC) ; \
+ if [ ! -d $(FOOTNPAG_DOC) ] ; \
+ then d=`echo $(FOOTNPAG_DOC) | sed 's:/.*::'` ; \
+ test -d $$d || mkdir $$d ; \
+ test -d $(FOOTNPAG_DOC) || mkdir $(FOOTNPAG_DOC) ; \
+ fi
+ cp *.dvi $(LATEX_DOC)/$(FOOTNPAG_DOC)
+
+$(LATEX):
+ @echo "You don't have a LaTeX styles directory (tree)." >&2
+ @exit 1
+
+$(LATEX_DOC):
+ @echo "You don't have a LaTeX documentation directory (tree)." >&2
+ @exit 1
+
+
+
+#
+# management tasks
+#
+
+.PHONY: export
+
+export::
+ cd src ; imkmf ; make export
+ cp $(HOME)/Notes/Copying.gpl License
+ pwd=`pwd` ; pwd=`suffix $$pwd /` ; cd .. ; \
+ gtar -czvf $$pwd.tar.gz \
+ --exclude=CVS --exclude=.cvsignore --exclude=.rcsrc $$pwd ; \
+ cp $$pwd/README $$pwd.README