#
# ${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_____.lt1 agdo____.lt1 agw_____.lt1 agwo____.lt1 bkd_____.lt1 \
	bkdi____.lt1 bkl_____.lt1 bkli____.lt1 cob_____.lt1 cobo____.lt1 \
	com_____.lt1 coo_____.lt1 hv______.lt1 hvb_____.lt1 hvbo____.lt1 \
	hvn_____.lt1 hvnb____.lt1 hvnbo___.lt1 hvno____.lt1 hvo_____.lt1 \
	ncb_____.lt1 ncbi____.lt1 nci_____.lt1 ncr_____.lt1 pob_____.lt1 \
	pobi____.lt1 poi_____.lt1 por_____.lt1 tib_____.lt1 tibi____.lt1 \
	tii_____.lt1 tir_____.lt1 \
	sy______.afm
DISTFILES = Makefile.in $(INSTFILES)

all: Makefile R

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

R:
	@if [ "$(srcdir)" != "." ]; then \
	  $(MAKE) rhome=$(top_builddir) install-sources; \
	fi

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

mostlyclean:
clean:
	@if [ "$(srcdir)" != "." ]; then \
	  rm -f *.afm *.lt1; \
	fi
distclean:
	@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