#
# ${R_HOME}/afm/Makefile

VPATH = @srcdir@
srcdir = @srcdir@
top_srcdir = @top_srcdir@

top_builddir = ..
subdir = afm

include $(top_builddir)/Makeconf

distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
INSTFILES = \
	agd_____.afm agdo____.afm agw_____.afm agwo____.afm bkd_____.afm \
	bkdi____.afm bkl_____.afm bkli____.afm cob_____.afm cobo____.afm \
	com_____.afm coo_____.afm hv______.afm hvb_____.afm hvbo____.afm \
	hvn_____.afm hvnb____.afm hvnbo___.afm hvno____.afm hvo_____.afm \
	ncb_____.afm ncbi____.afm nci_____.afm ncr_____.afm pob_____.afm \
	pobi____.afm poi_____.afm por_____.afm tib_____.afm tibi____.afm \
	tii_____.afm tir_____.afm sy______.afm \
	AdobeStd.enc AdobeSym.enc ISOLatin1.enc ISOLatin2.enc ISOLatin9.enc \
	MacRoman.enc PDFDoc.enc WinAnsi.enc
DISTFILES = Makefile.in $(INSTFILES) README

all: Makefile R

Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
	@cd $(top_builddir) && \
	  CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \
	  $(SHELL) ./config.status

R: Makefile
	@if test "$(BUILDDIR_IS_SRCDIR)" = no ; then \
	  $(MAKE) rhome=$(top_builddir) install-sources; \
	fi

install: install-message installdirs install-sources
installdirs:
	@$(MKINSTALLDIRS) $(rhome)/$(subdir)
install-message:
	@echo "installing $(subdir) ..."
install-sources:
	@for f in $(INSTFILES); do \
	  $(INSTALL_DATA) $(srcdir)/$${f} $(rhome)/$(subdir); \
	done
install-strip: install

uninstall:
	@echo "uninstalling $(subdir) ..."
	@rm -rf $(rhome)/$(subdir)

mostlyclean:
clean:
	@if test "$(BUILDDIR_IS_SRCDIR)" = no ; then \
	  rm -f $(INSTFILES); \
	fi
distclean: clean
	@rm -f Makefile
maintainer-clean: distclean

distdir: $(DISTFILES)
	@for f in $(DISTFILES); do \
	  test -f $(distdir)/$${f} \
	    || ln $(srcdir)/$${f} $(distdir)/$${f} 2>/dev/null \
	    || cp -p $(srcdir)/$${f} $(distdir)/$${f}; \
	done