The R Project SVN R

Rev

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

#-*- Makefile -*-
include ../gnuwin32/MkRules
R_HOME = ../..

## BATCH, INSTALL and REMOVE are handled internally in Rcmd.exe

SCRIPTDIR = bin

all: \
  $(R_HOME)/$(SCRIPTDIR)/build.pl $(R_HOME)/$(SCRIPTDIR)/check.pl \
  $(R_HOME)/$(SCRIPTDIR)/config.sh $(R_HOME)/$(SCRIPTDIR)/Rdconv.sh \
  $(R_HOME)/$(SCRIPTDIR)/Rd2dvi.sh $(R_HOME)/$(SCRIPTDIR)/Sd2Rd.pl \
  $(R_HOME)/$(SCRIPTDIR)/Rprof.pl $(R_HOME)/$(SCRIPTDIR)/SHLIB.sh \
  $(R_HOME)/$(SCRIPTDIR)/Stangle.sh $(R_HOME)/$(SCRIPTDIR)/Sweave.sh

$(R_HOME)/$(SCRIPTDIR)/check.pl: check.in
    @$(SED) -e 1d $< > $@

$(R_HOME)/$(SCRIPTDIR)/build.pl: build.in
    @$(SED) -e 1d $< > $@

$(R_HOME)/$(SCRIPTDIR)/Sd2Rd.pl: Sd2Rd.in
    @$(SED) -e 1d $< > $@

$(R_HOME)/$(SCRIPTDIR)/Rprof.pl: Rprof.in
    @$(SED) -e 1d $< > $@

$(R_HOME)/$(SCRIPTDIR)/Rdconv.sh: Rdconv
    @$(SED) -e "s|/bin/R|/$(BINDIR)/R|" $< > $@

$(R_HOME)/$(SCRIPTDIR)/Rd2dvi.sh: Rd2dvi
    @$(SED) -e "s|/bin/|/$(BINDIR)/|" $< > $@

$(R_HOME)/$(SCRIPTDIR)/config.sh: config
ifeq ($(strip $(WIN)),64)
    @$(SED) -e "s|R_ARCH=|R_ARCH=$(R_ARCH)|" $< > $@
else
    @cp $< $@
endif

$(R_HOME)/$(SCRIPTDIR)/SHLIB.sh: SHLIB
    @$(SED) -e "s|/bin/R|/$(BINDIR)/R|" $< > $@

$(R_HOME)/$(SCRIPTDIR)/Stangle.sh: Stangle
    @$(SED) -e "s|/bin/R|/$(BINDIR)/R|" $< > $@

$(R_HOME)/$(SCRIPTDIR)/Sweave.sh: Sweave
    @$(SED) -e "s|/bin/R|/$(BINDIR)/R|" $< > $@