blob: f1ba7586b4088a81c038c246fa512b0af3d8fb8b [file] [log] [blame]
#-*-Makefile-*-
#
# ${R_HOME}/doc/Makefile.win
ECHO = echo
include ../src/gnuwin32/MkRules
R_EXE = ../$(BINDIR)/Rterm --vanilla --slave
all: NEWS.rds html/NEWS.html NEWS NEWS.pdf \
CHANGES.rds CHANGES html/CHANGES.html
NEWS.rds: NEWS.Rd
@$(ECHO) "options(warn=1);saveRDS(tools:::prepare_Rd(tools::parse_Rd(\"$<\", \
macros = \"../share/Rd/macros/system.Rd\"), stages = \"install\", \
warningCalls = FALSE), \"$@\")" | $(R_EXE)
CHANGES.rds: ../src/gnuwin32/CHANGES.Rd
@$(ECHO) "options(warn=1);saveRDS(tools:::prepare_Rd(tools::parse_Rd(\"$<\", \
macros = \"../share/Rd/macros/system.Rd\"), stages = \"install\", \
warningCalls = FALSE), \"$@\")" | $(R_EXE)
## Force ASCII output, for portability on Windows
NEWS: NEWS.rds
@$(ECHO) "creating doc/NEWS"
@$(ECHO) "options(warn=1);tools:::Rd2txt_NEWS_in_Rd(\"$<\", \"$@\")" | \
$(R_EXE) LC_ALL=C
## Should be allowed to fail if pdflatex is not available
NEWS.pdf: NEWS.rds
@$(ECHO) "creating doc/NEWS.pdf"
-@$(ECHO) "options(warn=1);tools:::Rd2pdf_NEWS_in_Rd(\"$<\", \"$@\")" | \
$(R_EXE)
CHANGES: CHANGES.rds
@$(ECHO) "options(warn=1);tools:::Rd2txt_NEWS_in_Rd(\"$<\", \"$@\")" | \
$(R_EXE) LC_ALL=C
html/NEWS.html: NEWS.rds
@$(ECHO) "options(warn=1);tools:::Rd2HTML_NEWS_in_Rd(\"$<\", \"$@\")" | \
$(R_EXE)
html/CHANGES.html: CHANGES.rds
@$(ECHO) "options(warn=1);tools:::Rd2HTML_NEWS_in_Rd(\"$<\", \"$@\")" | \
$(R_EXE)
clean:
@rm -f NEWS.rds html/NEWS.html NEWS NEWS.pdf \
CHANGES.rds html/CHANGES.html