# Makefile to install CIRC # -- 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 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 [ `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 cleansource: rm -f *.mf *.def circ.sty veryclean: make clean make cleansource rm -f cidoc.tex circ.drv circ.dvi circ.ins cisyms.tex index.hlp