The R Project SVN R

Rev

Rev 29864 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 29864 Rev 30691
Line 18... Line 18...
18
  SHLIB.in Sd2Rd.in build.in check.in f77.in
18
  SHLIB.in Sd2Rd.in build.in check.in f77.in
19
SCRIPTS_B = $(SCRIPTS_B_IN:.in=)
19
SCRIPTS_B = $(SCRIPTS_B_IN:.in=)
20
## </NOTE>
20
## </NOTE>
21
 
21
 
22
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
22
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
23
DISTFILES = Makefile.in $(SCRIPTS_S) $(SCRIPTS_B_IN) R.sh.in
23
DISTFILES = Makefile.in Makefile.win $(SCRIPTS_S) $(SCRIPTS_B_IN) R.sh.in
24
 
24
 
25
CLEANFILES =
25
CLEANFILES =
26
DISTCLEANFILES = Makefile R.fe R.sh $(SCRIPTS_B)
26
DISTCLEANFILES = Makefile R.fe R.sh $(SCRIPTS_B)
27
 
27
 
28
all: Makefile R
28
all: Makefile R
Line 82... Line 82...
82
R.fe: R.sh $(top_srcdir)/VERSION $(top_srcdir)/date-stamp
82
R.fe: R.sh $(top_srcdir)/VERSION $(top_srcdir)/date-stamp
83
	@echo "creating $(subdir)/$@"
83
	@echo "creating $(subdir)/$@"
84
	@(v=`cat $(top_srcdir)/VERSION`; \
84
	@(v=`cat $(top_srcdir)/VERSION`; \
85
	  v="$${v} (`sed 's|/|-|g' $(top_srcdir)/date-stamp`)"; \
85
	  v="$${v} (`sed 's|/|-|g' $(top_srcdir)/date-stamp`)"; \
86
	  y=`cut -d/ -f1 < $(top_srcdir)/date-stamp`; \
86
	  y=`cut -d/ -f1 < $(top_srcdir)/date-stamp`; \
87
	  d=`cd $(top_builddir) ; pwd | sed 's,/,\\\/,g'`; \
87
	  d=`echo "$(abs_top_builddir)" | sed 's,/,\\\/,g'`; \
88
	  sed "s/\\(R_HOME_DIR=\\).*/\\1$${d}/; \
88
	  sed "s/\\(R_HOME_DIR=\\).*/\\1\"$${d}\"/; \
89
	       s@REPLACE_BY_VERSION@$${v}@; \
89
	       s@REPLACE_BY_VERSION@$${v}@; \
90
	       s@REPLACE_BY_YEAR@$${y}@" < R.sh > $@)
90
	       s@REPLACE_BY_YEAR@$${y}@" < R.sh > $@)
91
	@chmod +x $@
91
	@chmod +x $@
92
## </NOTE>
92
## </NOTE>
93
 
93
 
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 "s/\\(R_HOME_DIR=\\).*/\\1$${d}/;" < R.fe > $(Rexecbindir)/R; \
100
	  sed "s/\\(R_HOME_DIR=\\).*/\\1$${d}/;" < R.fe > "$(Rexecbindir)/R"; \
101
	  sed "s/\\(R_HOME_DIR=\\).*/\\1$${d}/;" < R.fe > $(bindir)/R)
101
	  sed "s/\\(R_HOME_DIR=\\).*/\\1$${d}/;" < R.fe > $(bindir)/R)
102
	@chmod 755 $(bindir)/R $(Rexecbindir)/R
102
	@chmod 755 $(bindir)/R "$(Rexecbindir)/R"
103
installdirs:
103
installdirs:
104
	@$(MKINSTALLDIRS) $(bindir)
104
	@$(MKINSTALLDIRS) $(bindir)
105
install-cmds:
105
install-cmds:
106
	@$(MKINSTALLDIRS) $(Rexecbindir)
106
	@$(MKINSTALLDIRS) "$(Rexecbindir)"
107
	@for f in $(SCRIPTS_S); do \
107
	@for f in $(SCRIPTS_S); do \
108
	  $(INSTALL_SCRIPT) $(srcdir)/$${f} $(Rexecbindir); \
108
	  $(INSTALL_SCRIPT) $(srcdir)/$${f} "$(Rexecbindir)"; \
109
	done
109
	done
110
	@for f in $(SCRIPTS_B); do \
110
	@for f in $(SCRIPTS_B); do \
111
	  $(INSTALL_SCRIPT) $${f} $(Rexecbindir); \
111
	  $(INSTALL_SCRIPT) $${f} "$(Rexecbindir)"; \
112
	done
112
	done
113
	@$(INSTALL_SCRIPT) $(top_builddir)/libtool $(Rexecbindir)
113
	@$(INSTALL_SCRIPT) $(top_builddir)/libtool "$(Rexecbindir)"
114
install-strip:
114
install-strip:
115
	$(MAKE) INSTALL_PROGRAM="${INSTALL_PROGRAM} -s" install
115
	$(MAKE) INSTALL_PROGRAM="${INSTALL_PROGRAM} -s" install
116
uninstall:
116
uninstall:
117
	@for f in $(SCRIPTS_S) $(SCRIPTS_B) libtool R; do \
117
	@for f in $(SCRIPTS_S) $(SCRIPTS_B) libtool R; do \
118
	  rm -f $(Rexecbindir)/$${f}; \
118
	  rm -f "$(Rexecbindir)/$${f}"; \
119
	done
119
	done
120
	@rmdir $(Rexecbindir) 2>/dev/null \
120
	@rmdir "$(Rexecbindir)" 2>/dev/null \
121
	  || echo "  subdir $(Rexecbindir) not removed"
121
	  || echo "  subdir $(Rexecbindir) not removed"
122
	@rm -f $(bindir)/R
122
	@rm -f $(bindir)/R
123
 
123
 
124
mostlyclean: clean
124
mostlyclean: clean
125
clean:
125
clean: