Rev 8959 | 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.Rtest-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)\" | sed 's/ //g');\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