1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
#-*-Makefile-*-
#
# ${R_HOME}/doc/Makefile.win
ECHO = echo
include ../src/gnuwin32/MkRules
R_EXE = ../$(BINDIR)/Rterm --vanilla --no-echo
all: NEWS.rds html/NEWS.html NEWS NEWS.pdf NEWS.2.rds NEWS.3.rds \
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) || rm $*
NEWS.2.rds: NEWS.2.Rd
@$(ECHO) "options(warn=1);saveRDS(tools:::prepare_Rd(tools::parse_Rd(\"$<\", \
macros = \"../share/Rd/macros/system.Rd\"), stages = \"install\", \
warningCalls = FALSE), \"$@\")" | $(R_EXE) || rm $*
NEWS.3.rds: NEWS.3.Rd
@$(ECHO) "options(warn=1);saveRDS(tools:::prepare_Rd(tools::parse_Rd(\"$<\", \
macros = \"../share/Rd/macros/system.Rd\"), stages = \"install\", \
warningCalls = FALSE), \"$@\")" | $(R_EXE) || rm $*
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) || rm $*
## Force ASCII output, for portability on Windows
NEWS: NEWS.rds
@$(ECHO) "creating doc/NEWS"
@$(ECHO) "options(warn=1);tools:::Rd2txt_NEWS_in_Rd(\"$<\", \"$@\", \
outputEncoding = \"ASCII//TRANSLIT\")" | $(R_EXE) || rm $*
## 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(\"$<\", \"$@\", \
outputEncoding = \"ASCII//TRANSLIT\")" | $(R_EXE) || rm $*
html/NEWS.html: NEWS.rds
@$(ECHO) "options(warn=1);tools:::Rd2HTML_NEWS_in_Rd(\"$<\", \"$@\")" | \
$(R_EXE) || rm $*
html/CHANGES.html: CHANGES.rds
@$(ECHO) "options(warn=1);tools:::Rd2HTML_NEWS_in_Rd(\"$<\", \"$@\")" | \
$(R_EXE) || rm $*
clean:
@rm -f NEWS.rds html/NEWS.html NEWS NEWS.pdf \
CHANGES.rds html/CHANGES.html
|