The R Project SVN R

Rev

Rev 51393 | 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

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

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

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

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

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

$(R_HOME)/bin/Rdconv.sh: Rdconv
    @cp $< $@

$(R_HOME)/bin/Rd2dvi.sh: Rd2dvi
    @cp $< $@

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

$(R_HOME)/bin/SHLIB.sh: SHLIB
    @cp $< $@

$(R_HOME)/bin/Stangle.sh: Stangle
    @cp $< $@

$(R_HOME)/bin/Sweave.sh: Sweave
    @cp $< $@