Rev 3786 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
## ${RHOME}/tests/MakefileVPATH = @srcdir@srcdir = @srcdir@top_srcdir = @top_srcdir@top_builddir = ..subdir = testsinclude $(top_builddir)/Makeconfdistdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)DISTFILES = $(shell cd $(srcdir); \ls Makefile.in README Rdiff *.R *.Rout.save)SUBDIRS = Examples## FIXMERHOME= ..R = LC_ALL=C $(RHOME)/bin/R --vanillaEx = ./ExamplesTESTsrc = simple-true.R simple-tests.R d-p-q-r-tests.R \print-tests.R is-things.R primitive-funs.R eval-etc.RTESTout = $(TESTsrc:.R=.Rout)%.Rout: %.R stamp-R@rm -f $@.fail@(SRCDIR=$(srcdir); export SRCDIR; \echo "$(R) < $< > $@"; \$(R) < $< > $@)@echo -n "Comparing \`$@' to \`$(srcdir)/$@.save' ..."@$(srcdir)/Rdiff $@ $(srcdir)/$@.save || \(mv $@ $@.fail && exit 1)@echo " OK"test-All: test-Examples $(TESTout)test-Examples:@cd $(Ex) && $(MAKE) $@stamp-R:: $(top_builddir)/bin/R.binary $(top_builddir)/library/base/R/base@cd $(top_builddir) && $(MAKE) R@touch $@mostlyclean: cleanclean:-(cd $(Ex); $(MAKE) $@)rm -f stamp-Rdistclean: clean@rm -f $(TESTout)-(cd $(Ex); $(MAKE) $@)@rm -f Makefilemaintainer-clean: distcleandistdir: $(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@for d in $(SUBDIRS); do \test -d $(distdir)/$${d} \|| mkdir $(distdir)/$${d} \|| exit 1; \chmod 755 $(distdir)/$${d}; \(cd $${d} && $(MAKE) distdir) \|| exit 1; \done