The R Project SVN R

Rev

Rev 86008 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2184 hornik 1
#
4580 hornik 2
# ${R_HOME}/tests/Examples/Makefile
2184 hornik 3
 
4
VPATH = @srcdir@
5
srcdir = @srcdir@
6
top_srcdir = @top_srcdir@
7
 
8
top_builddir = ../..
2331 hornik 9
subdir = tests/Examples
2184 hornik 10
 
11
include $(top_builddir)/Makeconf
12
 
2376 hornik 13
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
51917 ripley 14
INSTFILES = \
51888 ripley 15
  datasets-Ex.Rout.save grDevices-Ex.Rout.save graphics-Ex.Rout.save \
55612 ripley 16
  grid-Ex.Rout.save splines-Ex.Rout.save \
51888 ripley 17
  stats-Ex.Rout.save stats4-Ex.Rout.save tools-Ex.Rout.save
51917 ripley 18
DISTFILES = Makefile.in  Makefile.win $(INSTFILES)
2376 hornik 19
 
60254 ripley 20
## R_LIBS_SITE has to be non-empty or it is ignored
66009 ripley 21
## Note that this does not set LC_COLLATE.  The collation of examples
22
## is done in C order in massageExamples(), but we want to test the
23
## orderings users use.
80425 hornik 24
R_EXE = LANGUAGE=en LC_TIME=C R_LIBS= R_LIBS_USER=NULL R_LIBS_SITE=NULL \
77228 maechler 25
  $(top_builddir)/bin/R --vanilla --no-echo
47627 ripley 26
 
47810 ripley 27
all: Makefile test-Examples-Base
2184 hornik 28
 
2331 hornik 29
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
17899 hornik 30
	@cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
47795 ripley 31
 
21302 hornik 32
test-Examples: test-Examples-Base
47795 ripley 33
 
65765 ripley 34
TEST_DONTTEST = FALSE
47795 ripley 35
## Who does make check but not make? -- maybe better to check what was made.
21302 hornik 36
test-Examples-Base: Makefile
86008 smeyer 37
	@$(ECHO) "tools::testInstalledPackages(scope='base', types='examples', srcdir=if(!$(TEST_DONTTEST)) \"$(srcdir)\", commentDonttest=!$(TEST_DONTTEST))" | $(R_EXE)
6098 pd 38
 
47795 ripley 39
 
21712 hornik 40
## <NOTE>
41
## We do *not* want this to be added to test-Examples conditional on
23229 hornik 42
## @USE_RECOMMENDED_PACKAGES_TRUE@.
86910 smeyer 43
## 'make check-all' is used for running test-Packages-Recommended in
44
## addition to 'make check', which includes checking the examples.
21302 hornik 45
test-Examples-Recommended: test-Examples-Base
86910 smeyer 46
	@$(ECHO) "tools::testInstalledPackages(scope='recommended', types='examples')" | $(R_EXE)
21712 hornik 47
## </NOTE>
21242 pd 48
 
2184 hornik 49
mostlyclean: clean
50
clean:
68061 ripley 51
	-@rm -f *.R *.R-cnt *.Rout *.Rd* *.pdf *.tex *.dat* data foo* ex*.gz Makedeps
2184 hornik 52
distclean: clean
47759 ripley 53
	-@rm -f *.R*prev .RData sink-examp.txt Makefile
2184 hornik 54
maintainer-clean: distclean
2376 hornik 55
 
51917 ripley 56
install-tests:
57
	@$(MKINSTALLDIRS) "$(DESTDIR)$(rhome)/tests/Examples"
58
	@for f in $(INSTFILES); do \
59
	  $(INSTALL_DATA) $(srcdir)/$${f} "$(DESTDIR)$(rhome)/tests/Examples"; \
60
	done
61
 
62
 
2376 hornik 63
distdir: $(DISTFILES)
64
	@for f in $(DISTFILES); do \
65
	  test -f $(distdir)/$${f} \
66
	    || ln $(srcdir)/$${f} $(distdir)/$${f} 2>/dev/null \
67
	    || cp -p $(srcdir)/$${f} $(distdir)/$${f}; \
7431 hornik 68
	done