The R Project SVN R

Rev

Rev 27639 | Rev 28692 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27639 Rev 28239
Line 20... Line 20...
20
## Need to go through Rcmd rather than just call $(PERL) to ensure that
20
## Need to go through Rcmd rather than just call $(PERL) to ensure that
21
## PERL5LIB/PERLLIB are set appropriately (or do this ourselves).
21
## PERL5LIB/PERLLIB are set appropriately (or do this ourselves).
22
## See e.g. @file{src/gnuwin32/help/Makefile}.
22
## See e.g. @file{src/gnuwin32/help/Makefile}.
23
R_CMD_BUILD_HELP = $(top_builddir)/bin/R CMD perl $(top_srcdir)/share/perl/build-help.pl
23
R_CMD_BUILD_HELP = $(top_builddir)/bin/R CMD perl $(top_srcdir)/share/perl/build-help.pl
24
## </NOTE>
24
## </NOTE>
-
 
25
R_CMD_BUILD_HELP_OPTS =
25
 
26
 
26
R_EXE = $(top_builddir)/bin/R --vanilla
27
R_EXE = $(top_builddir)/bin/R --vanilla
27
 
28
 
28
all: Makefile R
29
all: Makefile R
29
 
30
 
Line 52... Line 53...
52
	@echo "building all R object docs (text, HTML, LaTeX, examples)"
53
	@echo "building all R object docs (text, HTML, LaTeX, examples)"
53
	@$(MAKE) DOCS
54
	@$(MAKE) DOCS
54
	@$(MAKE) indices
55
	@$(MAKE) indices
55
	@touch stamp-docs
56
	@touch stamp-docs
56
help:
57
help:
57
	@OPTS="--txt" $(MAKE) DOCS
58
	@$(MAKE) DOCS R_CMD_BUILD_HELP_OPTS="--txt"
58
html:
59
html:
59
	@OPTS="--html" $(MAKE) DOCS
60
	@$(MAKE) DOCS R_CMD_BUILD_HELP_OPTS="--html"
60
	@$(MAKE) indices
61
	@$(MAKE) indices
61
latex:
62
latex:
62
	@OPTS="--latex" $(MAKE) DOCS
63
	@$(MAKE) DOCS R_CMD_BUILD_HELP_OPTS="--latex"
63
examples:
64
examples:
64
	@OPTS="--example" $(MAKE) DOCS
65
	@$(MAKE) DOCS R_CMD_BUILD_HELP_OPTS="--example"
65
 
66
 
66
indices:
67
indices:
67
	@$(R_CMD_BUILD_HELP) --htmllists
68
	@$(R_CMD_BUILD_HELP) --htmllists
68
 
69
 
69
DOCS:
70
DOCS:
70
	@if @NO_PERL5@; then \
71
	@if @NO_PERL5@; then \
71
	  echo "you need Perl version 5 to build the R object docs"; \
72
	  echo "you need Perl version 5 to build the R object docs"; \
72
	  exit 1; \
73
	  exit 1; \
73
	fi
74
	fi
74
	@for pkg in $(R_PKGS_BASE); do \
75
	@for pkg in $(R_PKGS_BASE); do \
75
	  $(R_CMD_BUILD_HELP) $${OPTS} $(srcdir)/$${pkg}; \
76
	  $(R_CMD_BUILD_HELP) $(R_CMD_BUILD_HELP_OPTS) $(srcdir)/$${pkg}; \
76
	  ( echo ".installPackageIndices(\"$(srcdir)/$${pkg}\","; \
77
	  ( echo ".installPackageIndices(\"$(srcdir)/$${pkg}\","; \
77
	    echo " \"$(top_builddir)/library/$${pkg}\")") | \
78
	    echo " \"$(top_builddir)/library/$${pkg}\")") | \
78
	      R_DEFAULT_PACKAGES=tools $(R_EXE) --slave > /dev/null; \
79
	      R_DEFAULT_PACKAGES=tools $(R_EXE) --slave > /dev/null; \
79
	done; \
80
	done; \
80
	cat $(top_builddir)/library/*/CONTENTS \
81
	cat $(top_builddir)/library/*/CONTENTS \