#
# ${R_HOME}/tools/Makefile

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

top_builddir = ..
subdir = tools

include $(top_builddir)/Makeconf

distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
DISTFILES = README \
	Makefile.in \
	GETCONFIG GETMAKEVAL GETSYMBOLS GETVERSION \
	Rdnewer.pl \
	config.guess \
	config.sub \
	copy-if-change \
	help2man.pl \
	install-info.pl \
	install-sh \
	keywords2html.pl \
	ldAIX4 \
	linkcheck.pl \
	ltmain.sh \
	mdate-sh \
	missing \
	mkinstalldirs \
	move-if-change \
	pkg2tex.pl \
	texi2dvi

all: Makefile R

.SUFFIXES:
.SUFFIXES: .in

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

R: Makefile

mostlyclean: clean
clean:
distclean: clean
	@rm -f Makefile
maintainer-clean: distclean

install install-strip uninstall TAGS info dvi check:

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