Rev 9615 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
#-*- Makefile -*-## ${RHOME}/src/gnuwin32/check/PkgCheck# to be run from RHOME/src/library/$(PKG)/check or testsinclude $(RHOME)/src/gnuwin32/MkRulesall: runR = $(RHOME)/bin/Rterm --vanillaRDIFF = $(RHOME)/src/scripts/Rdiffrun: $(PKG)-Ex.R@$(ECHO) "Running examples in '$(PKG)-Ex.R' ..."$(R) R_LIBS='$(RLIB);$(R_LIBS)' < $(PKG)-Ex.R > $(PKG)-Ex.Rout$(PKG)-Ex.R: $(RLIB)/$(PKG)/R-ex/*.R@$(ECHO) "Massaging examples into '$(PKG)-Ex.R' ..."# @$(SED) -e s/@PKG@/$(PKG)/ -e s+@RLIB@+$(RLIB)+ \# $(RHOME)/src/gnuwin32/check/makeRex.R > MakeRex.R# @$(R) --quiet < makeRex.R > nul# @$(RM) makeRex.R@sh $(RHOME)/bin/massage-Examples.sh $(PKG) $^ > $@test-src-1=$(shell ls *.R 2> nul)test-src-auto=$(shell ls *.Rin 2> nul | sed 's/Rin$$/R/')test-src = $(test-src-1) $(test-src-auto)test-out = $(test-src:.R=.Rout).SUFFIXES:.SUFFIXES: .R .Rin .Rout.Rin.R:@echo "Creating \`$@'"@$(R) < $< > nul.R.Rout:@rm -f $@ $@.fail@echo " Running \`$<'"@$(R) R_LIBS="$(RLIB);$(R_LIBS)" < $< > $@@if test -f $@.save ; then \mv $@ $@.fail; \echo -n " Comparing \`$@' to \`$@.save' ..."; \$(RDIFF) $@.fail $@.save 0 || exit 1; \mv $@.fail $@; \echo "OK"; \fitests:@(out=$(shell echo \"$(test-out)\");\if test -n "$${out}"; then \echo "Running specific tests"; \$(MAKE) -f $(R_HOME)/src/gnuwin32/check/PkgCheck $${out}; \fi)clean:@rm -f $(test-out) $(test-src-auto) *.fail