| 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.
|
| 60254 |
ripley |
24 |
R_EXE = LANGUAGE=en LC_TIME=C R_LIBS= R_LIBS_USER= R_LIBS_SITE='nothing' \
|
| 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
|
| 65765 |
ripley |
37 |
@$(ECHO) "tools::testInstalledPackages(scope='base', types='examples', srcdir=\"$(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@.
|
| 23861 |
hornik |
43 |
## 'make check-all' is used for running test-Examples-Recommended in
|
| 21712 |
hornik |
44 |
## addition to 'make check'.
|
| 53331 |
ripley |
45 |
## nlme suggests 'Hmisc'
|
| 21302 |
hornik |
46 |
test-Examples-Recommended: test-Examples-Base
|
| 57532 |
ripley |
47 |
@$(ECHO) "tools::testInstalledPackages(scope='recommended', types='examples')" | _R_CHECK_FORCE_SUGGESTS_=FALSE $(R_EXE)
|
| 21712 |
hornik |
48 |
## </NOTE>
|
| 21242 |
pd |
49 |
|
| 2184 |
hornik |
50 |
mostlyclean: clean
|
|
|
51 |
clean:
|
| 68061 |
ripley |
52 |
-@rm -f *.R *.R-cnt *.Rout *.Rd* *.pdf *.tex *.dat* data foo* ex*.gz Makedeps
|
| 2184 |
hornik |
53 |
distclean: clean
|
| 47759 |
ripley |
54 |
-@rm -f *.R*prev .RData sink-examp.txt Makefile
|
| 2184 |
hornik |
55 |
maintainer-clean: distclean
|
| 2376 |
hornik |
56 |
|
| 51917 |
ripley |
57 |
install-tests:
|
|
|
58 |
@$(MKINSTALLDIRS) "$(DESTDIR)$(rhome)/tests/Examples"
|
|
|
59 |
@for f in $(INSTFILES); do \
|
|
|
60 |
$(INSTALL_DATA) $(srcdir)/$${f} "$(DESTDIR)$(rhome)/tests/Examples"; \
|
|
|
61 |
done
|
|
|
62 |
|
|
|
63 |
|
| 2376 |
hornik |
64 |
distdir: $(DISTFILES)
|
|
|
65 |
@for f in $(DISTFILES); do \
|
|
|
66 |
test -f $(distdir)/$${f} \
|
|
|
67 |
|| ln $(srcdir)/$${f} $(distdir)/$${f} 2>/dev/null \
|
|
|
68 |
|| cp -p $(srcdir)/$${f} $(distdir)/$${f}; \
|
| 7431 |
hornik |
69 |
done
|