#  Anders G S Svensson
#  $Date: 1994/11/24 01:39:37 $
#  $Revision: 1.5 $

#	Installation directories.

DESTDIR = /usr/local/lib

# pk files go here.
#
PKDEST = $(DESTDIR)/tex/fonts/pk

# tfm files go here.
#
TFMDEST = $(DESTDIR)/tex/fonts/tfm

# mf files go here.
#
MFDEST = $(DESTDIR)/mf/inputs

# tex files go here.
#
TEXDEST = $(DESTDIR)/tex/inputs

##################################################

INSTALL = install -c -m 644

MFSOURCES = arrsy.mf arrsy10.mf arrsym.mf
TEXSOURCES = arrsy.tex

all:
	make MFINPUTS=.:$(MFINPUTS) GFFONTS=. pk

pk:
	mf "\mode=localfont; input arrsy10"
	@for file in *gf; do gftopk ./$$file; done

install:  install-src install-fonts

install-src:
	$(INSTALL) $(MFSOURCES) $(MFDEST)
	$(INSTALL) $(TEXSOURCES) $(TEXDEST)

install-fonts:
	$(INSTALL) arrsy10.tfm $(TFMDEST)
	$(INSTALL) arrsy10.*pk $(PKDEST)

clean:
	rm -f arrsy10.tfm arrsy10.*pk arrsy10.*gf *.log