Rev 2331 | Rev 2546 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
## ${RHOME}/tests/Examples/MakefileVPATH = @srcdir@srcdir = @srcdir@top_srcdir = @top_srcdir@top_builddir = ../..subdir = tests/Examplesinclude $(top_builddir)/Makeconfdistdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)DISTFILES = Makefile.in massage-ExamplesR = $(top_builddir)/bin/R --no-init-file --no-save --no-restore --vsize 6Rbase = $(top_builddir)/library/base/R/baseRbinary = $(top_builddir)/bin/R.binaryall: Makefile test-ExamplesMakefile: $(srcdir)/Makefile.in $(top_builddir)/config.statuscd $(top_builddir) && \CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \$(SHELL) ./config.statustest-Examples: All-Ex.RoutAll-Ex.Rout: All-Ex.R R-exe@if [ -f $@.bak ]; then mv $@.bak $@.bakk ; fi@if [ -f $@ ]; then mv $@ $@.bak ; fi@echo "Running all help() examples ..."$(R) < $< > $@All-Ex.R: $(top_builddir)/library/base/R-ex/*.R@if [ -f $@.bak ]; then mv $@.bak $@.bakk ; fi@if [ -f $@ ]; then mv $@ $@.bak ; fi@echo "Massaging examples into $@ ..."@-$(srcdir)/massage-Examples \$(top_builddir)/library/base/R-ex/*.R > $@$(top_builddir)/library/base/R-ex/%.R: $(top_srcdir)/src/library/base/man/%.Rd(cd $(top_builddir)/src/library && \$(MAKE) PKGS=base stamp-examples)R-exe:-(cd $(top_builddir) && $(MAKE) R)mostlyclean: cleanclean:@rm -f *.Rd* *.ps *.tex *.dat* data foo*distclean: clean@rm -f *.R .RData sink-examp.txt 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