The R Project SVN R

Rev

Rev 34123 | Rev 36746 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34123 Rev 34217
Line 95... Line 95...
95
	@(cd $(@D); $(MAKE) $(@F))
95
	@(cd $(@D); $(MAKE) $(@F))
96
 
96
 
97
install: installdirs install-cmds
97
install: installdirs install-cmds
98
	@rm -f $(bindir)/R
98
	@rm -f $(bindir)/R
99
	@(d=`echo '$(rhome)' | sed 's,/,\\\/,g';`; \
99
	@(d=`echo '$(rhome)' | sed 's,/,\\\/,g';`; \
100
	  sed -e "s/\\(R_HOME_DIR=\\).*/\\1$${d}/;" -e "s+\\(R_SHARE_DIR=\\).*+\\1$(rsharedir)+;" -e  "s+\\(R_INCLUDE=\\).*+\\1$(rincludedir)+;" -e "s+\\(R_DOC_DIR=\\).*+\\1$(rdocdir)+;"\
100
	  sed -e "s/\\(R_HOME_DIR=\\).*/\\1$${d}/;" -e "s+\\(R_SHARE_DIR=\\).*+\\1$(rsharedir)+;" -e  "s+\\(R_INCLUDE_DIR=\\).*+\\1$(rincludedir)+;" -e "s+\\(R_DOC_DIR=\\).*+\\1$(rdocdir)+;"\
101
	  < R.fe > "$(Rexecbindir)/R")
101
	  < R.fe > "$(Rexecbindir)/R")
102
	@cp  "$(Rexecbindir)/R" $(bindir)/R
102
	@cp  "$(Rexecbindir)/R" $(bindir)/R
103
	@chmod 755 $(bindir)/R "$(Rexecbindir)/R"
103
	@chmod 755 $(bindir)/R "$(Rexecbindir)/R"
104
installdirs:
104
installdirs:
105
	@$(MKINSTALLDIRS) $(bindir)
105
	@$(MKINSTALLDIRS) $(bindir)