summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/circ/Makefile
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-11 23:51:44 +0000
committerKarl Berry <karl@freefriends.org>2006-01-11 23:51:44 +0000
commit753b702a5c4d4a1948d49e0723b21fee3372dda2 (patch)
treee2a7c061c6006a5510be780d3ce7cf504ea4dea9 /Master/texmf-dist/source/latex/circ/Makefile
parentfcebce177dd5438ff55d0637a35100af588f0335 (diff)
trunk/Master/texmf-dist/source/latex/circ
git-svn-id: svn://tug.org/texlive/trunk@189 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/circ/Makefile')
-rw-r--r--Master/texmf-dist/source/latex/circ/Makefile115
1 files changed, 115 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/circ/Makefile b/Master/texmf-dist/source/latex/circ/Makefile
new file mode 100644
index 00000000000..00d731fbc98
--- /dev/null
+++ b/Master/texmf-dist/source/latex/circ/Makefile
@@ -0,0 +1,115 @@
+# Makefile to install CIRC
+# Copyright (C) 1998 Andreas Tille
+#
+# 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 2 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, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+# -- Testversion --
+# It is very likely to contain errors!!!!!!!!!!!!
+# Use it only at your own risk!!
+# Please report errors in this file to tille@physik.uni-halle.de
+#
+# Andreas Tille 03/16/1998
+#
+INSTDIR=/usr/local/lib/texmf
+CIRCMF=$(INSTDIR)/mf/circ
+CIRCTEX=$(INSTDIR)/tex/circ
+FONTMAP=/usr/lib/texmf/fontname/special.map
+CIRCMFFILES=cibimos \
+ cicirc \
+ cidiod \
+ cioptic \
+ ciphysic\
+ cirest \
+ cisym \
+ ciwidko
+PKFONTDIR=/var/spool/texmf/pk
+TFMDIR=/var/spool/texmf/tfm
+
+all: circ.drv circ.dtx
+
+.PHONY: all
+
+doc: circ.dvi circ.dtx
+
+circ.drv: circ.dtx
+ tex circ.dtx
+
+install: circ.drv
+# delete old CIRC METAFONT files
+ if [ -d $(CIRCMF) ] ; then \
+ rm -rf $(CIRCMF)/ci*.mf $(CIRCMF)/csym.mf $(CIRCMF)/defcirc.mf ; \
+ else \
+ mkdir -p $(CIRCMF) ; \
+ fi
+# move new CIRC METAFONT files
+ mv *.mf $(CIRCMF)
+# delete old CIRC TeX files
+ if [ -d $(CIRCTEX) ] ; then \
+ rm -rf $(CIRCTEX)/*.def $(CIRCTEX)/circ.sty ; \
+ else \
+ mkdir -p $(CIRCTEX) ; \
+ fi
+# move new CIRC TeX files
+ mv *.def circ.sty $(CIRCTEX)
+# check fontmap special.map file for existing CIRC entries and
+# append the necessary entries if not available
+ if [ ! -f $(FONTMAP) ] ; then \
+ mkdir -p `dirname $(FONTMAP)` ; \
+ touch $(FONTMAP) ; \
+ fi
+ if [ `grep -i -s -c cicirc $(FONTMAP)` -eq 0 ] ; then \
+ echo "@c CIRC fonts written by Sebastian Tannert and Andreas Tille" >> $(FONTMAP) ; \
+ fi
+ for mffile in $(CIRCMFFILES) ; \
+ do \
+ if [ `grep -i -s -c $$mffile $(FONTMAP)` -eq 0 ] ; then \
+ echo "$$mffile public circ % CIRC-package" >> $(FONTMAP) ; \
+ fi \
+ done
+ make cleanpk
+ make cleantfm
+
+circ.dvi: circ.drv circ.dtx
+ latex circ.drv
+ makeindex -s circ.ist circ.idx
+ latex circ.drv
+ makeindex -s circ.ist circ.idx
+ latex circ.drv
+
+cleantfm:
+# delete old CIRC TFM files (according to entries in special.map)
+ if [ -d $(TFMDIR)/public ] ; then \
+ rm -rf $(TFMDIR)/public/circ ; \
+ fi
+
+cleanpk:
+# delete old CIRC PK files (according to entries in special.map)
+ if [ -d $(PKFONTDIR) ] ; then \
+ for deldir in `find $(PKFONTDIR) -name circ -type d | grep "public/circ"` ; \
+ do \
+ rm -rf $$deldir ; \
+ done \
+ fi
+
+clean:
+ rm -f circ.log circ.idx circ.aux circ.toc circ.ind circ.ilg circ.ist *.600pk *.tfm
+
+cleansource:
+ rm -f *.mf *.def circ.sty
+
+veryclean:
+ make clean
+ make cleansource
+ rm -f cidoc.tex circ.drv circ.dvi cisyms.tex index.hlp