# # ${R_HOME}/tests/Makefile VPATH = @srcdir@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ top_builddir = .. subdir = tests all check: test-all-basics check-devel: check test-all-devel check-all: check-devel test-Packages-Recommended check-recommended: test-Packages-Recommended include $(top_builddir)/Makeconf include $(srcdir)/Makefile.common distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) DISTFILES = Makefile.in Makefile.win Makefile.install Makefile.common \ $(INSTFILES) gct-foot.R reg-win.R \ testit.Rd testit.txt.save testit.html.save \ testit.tex.save testit-Ex.R.save ver20.Rd \ ver10.Rd ver10.txt.save ver10.html.save ver10.tex.save ver10-Ex.R.save \ ver11.Rd ver11.txt.save ver11.html.save ver11.tex.save ver11-Ex.R.save \ R-intro.Rout.save SUBDIRS = Embedding Examples Native ## SRCDIR is used by reg-tests-1.R and reg-IO2.R ## GNU gettext disables LANGUAGE if LC_ALL=C, but other systems might not. R = LANGUAGE=en LC_ALL=C SRCDIR=$(srcdir) R_DEFAULT_PACKAGES= $(top_builddir)/bin/R --vanilla R2 = R_DEFAULT_PACKAGES= $(top_builddir)/bin/R --vanilla R3 = $(top_builddir)/bin/R CMD check RDIFF = $(top_builddir)/bin/R CMD Rdiff RDCONV = $(top_builddir)/bin/R CMD Rdconv MK = $(MAKE) all-basic-tests = Examples Specific Reg Internet all-devel-tests = Docs IsAs Random Demo Rd Primitive Regexp Segfault \ Standalone Packages all check test-all-basics test-all-devel: Makefile $(srcdir)/Makefile.common Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ ## ## These depend on an internet connection, and the sites being up. ## So allow this to fail: it may be slow doing so. test-Internet: @$(ECHO) "running tests of Internet and socket functions" @$(ECHO) " expect some differences" -@$(MAKE) $(test-out-internet) RVAL_IF_DIFF=0 ## ## ## Not all platforms can build standalone. ## So allow this to fail. test-Standalone: @$(ECHO) "testing building standalone Rmath" -@(cd $(top_builddir)/src/nmath/standalone; $(MAKE) check) ## mostlyclean: clean clean: -@for d in $(SUBDIRS); do \ (cd $${d} && $(MAKE) $@); \ done -@rm -f stamp-R Makedeps Rplot* Rprof.out data dumpdata.R \ reg-plot-latin1.ps reg-plot.ps reg-tests-?.ps \ R-exts.* R-intro.R R-intro.Rout \ FALSE* .R .tex mirrors.html PACKAGES* -@rm -f testit.txt testit.html testit.tex testit-Ex.R -@rm -f ver10.txt ver10.html ver10.tex ver10-Ex.R -@rm -f ver11.txt ver11.html ver11.tex ver11-Ex.R -@rm -rf anRpackage myTst* myLib distclean: clean -@for d in $(SUBDIRS); do \ (cd $${d} && $(MAKE) $@); \ done -@rm -f Makefile $(test-out) $(test-src-auto) .RData -@rm -rf *.Rcheck Packages maintainer-clean: distclean R install install-strip uninstall TAGS info dvi: install-tests: @$(ECHO) "installing specific tests" @$(MKINSTALLDIRS) "$(DESTDIR)$(rhome)/tests" @$(MKINSTALLDIRS) "$(DESTDIR)$(rhome)/tests/Packages" @for f in Makefile.common $(INSTFILES); do \ $(INSTALL_DATA) $(srcdir)/$${f} "$(DESTDIR)$(rhome)/tests"; \ done @$(INSTALL_DATA) $(srcdir)/Makefile.install \ "$(DESTDIR)/$(rhome)/tests/Makefile" uninstall-tests: @$(ECHO) "uninstalling specific tests and removing results" @rm -rf "$(DESTDIR)$(rhome)/tests" 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 @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