The R Project SVN R

Rev

Rev 50933 | Rev 51037 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

include ../MkRules

R_HOME = ../../..

all: profiles fixhtml fixbin fixetc fixdoc svnonly

profiles: $(R_HOME)/library/base/R/Rprofile

$(R_HOME)/library/base/R/Rprofile:  ../../library/profile/Common.R \
../../library/profile/Rprofile.windows
    @$(ECHO) -------- Building $@ from $^--------
    mkdir -p $(R_HOME)/library/base/R
    @$(CAT)  $^ > $@

fixbin:  cp2bin # iconv
    @$(ECHO) done > fixbin

iconv:
    @$(CP) ../unicode/iconv.dll ../../../bin

cp2bin: $(wildcard ./bin/*)
    @zip -q bins $^
    @unzip -oaq bins -d  $(R_HOME)
    @$(RM) bins.zip

fixhtml:  html/rwin.html
    $(CP) -p html/rwin.html $(R_HOME)/doc/html/index.html
    @$(ECHO) done > fixhtml

fixetc: $(wildcard ./etc/*)
    $(CP) -p $^ $(R_HOME)/etc
ifeq ($(strip $(WIN)),64)
    $(SED) -e 's/WIN = 32/WIN = 64/' -e "s/BINPREF =/BINPREF = $(BINPREF)/" etc/Makeconf > $(R_HOME)/etc/Makeconf
endif
    @$(ECHO) done > fixetc

fixdoc: $(wildcard ../CHANGES*)
    $(CP) -p $^ $(R_HOME)/doc
    @$(ECHO) done > fixdoc

svnonly:
    @$(MAKE) -C ../../../doc/manual -f Makefile.win svnonly

clean:
    $(RM) *~ */*~ fixhtml fixbin fixetc fixshare fixdoc

distclean: