# Generated automatically from Makefile.in by configure.
# Makefile for the dvipsk PostScript font files.
#
# Copyright (C) 1992, 93 Karl Berry.
#
# 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 1, 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., 675 Mass Ave, Cambridge, MA 02139, USA.

srcdir = .
VPATH = .

# For `install'.
prefix = /usr/local
datadir = $(prefix)/lib
texprefix = $(datadir)/tex
psfontdir = $(texprefix)/fonts/adobe
texinputdir = $(texprefix)/macros
psmacrodir = $(texinputdir)/dvips

INSTALL = /usr/local/gnu/bin/install -c
INSTALL_DATA = $(INSTALL) -m 644
SHELL = /bin/sh

installargs = \
  INSTALL='$(INSTALL)' \
  INSTALL_DATA='$(INSTALL_DATA)' \
  psfontdir=$(psfontdir)

all:

# I used to read the family/directory mapping from a file, but that was
# too fragile wrt various systems' sed.
install: 
	$(SHELL) $(srcdir)/../../mkdirchain $(psfontdir) $(psmacrodir)
	cd $(srcdir) && for f in *.sty; do \
          $(INSTALL_DATA) $$f $(psmacrodir)/$$f; done 
	$(MAKE) $(installargs) fam=ag fam_dir=avantgarde	install-family
	$(MAKE) $(installargs) fam=bk fam_dir=bookman		install-family
	$(MAKE) $(installargs) fam=cr fam_dir=courier		install-family
	$(MAKE) $(installargs) fam=hv fam_dir=helvetica		install-family
	$(MAKE) $(installargs) fam=nc fam_dir=newcenturyschl	install-family
	$(MAKE) $(installargs) fam=pl fam_dir=palatino		install-family
	$(MAKE) $(installargs) fam=sy fam_dir=symbol		install-family
	$(MAKE) $(installargs) fam=tm fam_dir=times		install-family
	$(MAKE) $(installargs) fam=zc fam_dir=zapfchancery	install-family
	$(MAKE) $(installargs) fam=zd fam_dir=zapfdingbats	install-family

# This is only intended to be called recursively, with the fam and
# fam_dir variables assigned.
install-family:
	$(SHELL) $(srcdir)/../../mkdirchain $(psfontdir)/$(fam_dir)
	cd $(srcdir) && for f in p$$fam* rp$$fam*; do			\
          $(INSTALL_DATA) $$f $(psfontdir)/$(fam_dir)/$$f; done

# Do we really want to uninstall the fonts?
uninstall:


Makefile: Makefile.in ../config.status
	(cd ..; $(SHELL) config.status)


depend TAGS:

mostlyclean:

clean: mostlyclean
	rm -f *.dvi *.log *.ps

distclean: clean
	rm -f Makefile

realclean: distclean

extraclean:
	rm -f *~ *\#* patch* *.orig *.rej core a.out *.vpl *.pl

.NOEXPORT:
