Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 276 lines (252 sloc) 11.536 kb
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
1 #
3f74187 Rename RHOME to R_HOME.
hornik authored
2 # ${R_HOME}/Makefile
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
3
4 VPATH = @srcdir@
5 srcdir = @srcdir@
6 top_srcdir = @top_srcdir@
7
8 top_builddir = .
9
10 include $(top_builddir)/Makeconf
11
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
12 distdir = $(PACKAGE)-$(VERSION)
3e5a783 start moving top-level docs to doc/ for easier split installations
ripley authored
13 INSTFILES = COPYING NEWS
14 NON_SVN_INSTFILES = SVN-REVISION
c7b5dc4 branch update - not bugfree
pd authored
15 DISTFILES = $(INSTFILES) \
f9e88be remove Y2K
ripley authored
16 ChangeLog INSTALL ONEWS OONEWS README VERSION \
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
17 Makeconf.in Makefile.in \
76a7f91 remove 'date-stamp' from DISTFILES
maechler authored
18 config.site configure configure.ac
a3eef76 improve NLS, especially if --disable-nls
ripley authored
19 SUBDIRS = m4 tools doc etc share src tests @USE_NLS_TRUE@ po
3e5a783 start moving top-level docs to doc/ for easier split installations
ripley authored
20 SUBDIRS_WITH_NO_BUILD = @USE_NLS_FALSE@ po
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
21
f0cc021 distribute grid vignettes in the tarballs and don't make by default
ripley authored
22 all: Makefile Makeconf R docs recommended
8fe7435 make recommended packages before vignettes (as use lattice, at least …
ripley authored
23 recommended: @USE_RECOMMENDED_PACKAGES_TRUE@ stamp-recommended
1f7ea5b Rewrite.
hornik authored
24
ba6787e branch update
pd authored
25 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
3f2fe45 Rename 'configure.in' to 'configure.ac'.
hornik authored
26 @cd $(top_builddir) && $(SHELL) ./config.status $@
b2a3d9a Misc fixes and cleanups.
hornik authored
27 Makeconf: $(srcdir)/Makeconf.in $(top_builddir)/config.status
3f2fe45 Rename 'configure.in' to 'configure.ac'.
hornik authored
28 @cd $(top_builddir) && $(SHELL) ./config.status $@
b2a3d9a Misc fixes and cleanups.
hornik authored
29
3548e85 build ac{include,local} in the build tree as needed, don't ship
ripley authored
30 ACLOCAL_M4 = aclocal.m4
06e1709 Create `aclocal.m4' from `m4/*' via `acconfig.h'.
hornik authored
31 ACINCLUDE_DEPENDENCIES = \
4d29d3d Split `acinclude.m4' into new subdir `m4'.
hornik authored
32 m4/R.m4 \
d7c77fd more cleaning up of FLIBS
ripley authored
33 m4/clibs.m4 \
faf7cb1 branch update
ripley authored
34 m4/codeset.m4 \
f5eef21 add gettext-lib.m4, as not always already installed
ripley authored
35 m4/gettext.m4 m4/gettext-lib.m4 \
6fd3006 Add Java support to configure (append java library path to R_LD_LIBRA…
urbaneks authored
36 m4/java.m4 \
4d29d3d Split `acinclude.m4' into new subdir `m4'.
hornik authored
37 m4/libtool.m4
530510d configure needs a dependency on VERSION.
hornik authored
38 CONFIGURE_DEPENDENCIES = $(srcdir)/VERSION
b2a3d9a Misc fixes and cleanups.
hornik authored
39 config.status: $(srcdir)/configure
e6f219c Improve automatic remaking.
hornik authored
40 @$(SHELL) ./config.status --recheck
530510d configure needs a dependency on VERSION.
hornik authored
41 $(srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(srcdir)/configure.ac $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
3548e85 build ac{include,local} in the build tree as needed, don't ship
ripley authored
42 @BD=`pwd`; cd $(srcdir) && $(AUTOCONF) -B $${BD}
43 $(ACLOCAL_M4): $(srcdir)/configure.ac acinclude.m4
44 @BD=`pwd`; cd $(srcdir) && $(ACLOCAL) --output=$${BD}/$@ -I $${BD}
f8d4977 lost dependencies
ripley authored
45 acinclude.m4: $(srcdir)/configure.ac $(ACINCLUDE_DEPENDENCIES)
3548e85 build ac{include,local} in the build tree as needed, don't ship
ripley authored
46 @(cd $(srcdir) && cat $(ACINCLUDE_DEPENDENCIES)) > $@
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
47
e1acdaf Start support for libtool and R shared library.
hornik authored
48 LIBTOOL_DEPS = @LIBTOOL_DEPS@
49 libtool: $(LIBTOOL_DEPS)
50 $(SHELL) ./config.status --recheck
51
0f0950c move some files from SVN sources to `make dist'.
ripley authored
52 R: Makefile svnonly
a437d9e Improve testing whether srcdir equals builddir.
hornik authored
53 @if test "$(BUILDDIR_IS_SRCDIR)" = no ; then \
6f16fac branch update
pd authored
54 for f in $(INSTFILES); do \
55 $(INSTALL_DATA) $(srcdir)/$${f} $(top_builddir); \
56 done; \
57 fi
89cc593 Make targets for build and (un)install more recursive.
hornik authored
58 @for d in $(SUBDIRS); do \
aa7eb80 branch update
pd authored
59 (cd $${d} && $(MAKE) R) || exit 1; \
0aaec01 Add demos in install and clean.
hornik authored
60 done
8cbcb25 Remove 'autom4te.cache' in 'make maintainer-clean'.
hornik authored
61 @test -f src/library/stamp-docs || \
62 echo "you should 'make docs' now ..."
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
63
1c06edb branch update
ripley authored
64 docs: R FORCE
640f330 Build HTML versions of texinfo manuals.
hornik authored
65 -@(cd doc && $(MAKE) $@)
66 -@(cd src/library && $(MAKE) $@)
67 help html latex examples: FORCE
a16651d New targets Makefile and uninstall.
hornik authored
68 -@(cd src/library && $(MAKE) $@)
1f7ea5b Rewrite.
hornik authored
69 FORCE:
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
70
49dde09 updated mechanism re. recommended packages
pd authored
71 stamp-recommended: R docs
368bb7f Improve target 'stamp-recommended'.
hornik authored
72 @(cd src/library/Recommended && $(MAKE))
3ca2d9e Further changes related to recommended packages.
hornik authored
73
8fe7435 make recommended packages before vignettes (as use lattice, at least …
ripley authored
74 vignettes: stamp-recommended
75 -@(cd src/library && $(MAKE) $@)
76
0f0950c move some files from SVN sources to `make dist'.
ripley authored
77 install: installdirs svnonly
89cc593 Make targets for build and (un)install more recursive.
hornik authored
78 @for d in $(SUBDIRS); do \
aa7eb80 branch update
pd authored
79 (cd $${d} && $(MAKE) $@) || exit 1; \
a16651d New targets Makefile and uninstall.
hornik authored
80 done
fd3265c Fix installation bug.
hornik authored
81 @for f in $(INSTFILES); do \
b164a43 More 'improvements' for the case where R_HOME contains spaces.
hornik authored
82 $(INSTALL_DATA) $(srcdir)/$${f} "$(rhome)"; \
fd3265c Fix installation bug.
hornik authored
83 done
3e5a783 start moving top-level docs to doc/ for easier split installations
ripley authored
84 @for f in $(INSTFILES); do \
85 $(INSTALL_DATA) $(srcdir)/$${f} "$(rdocdir)"; \
86 done
0f0950c move some files from SVN sources to `make dist'.
ripley authored
87 @for f in $(NON_SVN_INSTFILES); do \
88 $(INSTALL_DATA) $${f} "$(rhome)"; \
89 done
a69edad fixed small problems with symlink in the R.framework
iacus authored
90 @WANT_R_FRAMEWORK_TRUE@ $(MAKE) install-R-framework
0c57821 Add support for configurable framework version name on OS X and chang…
urbaneks authored
91 @WANT_R_FRAMEWORK_TRUE@ @(sed 's|^LIBR =.*|LIBR = -F$(R_FRAMEWORK_DIR)/.. -framework R|' \
b164a43 More 'improvements' for the case where R_HOME contains spaces.
hornik authored
92 @WANT_R_FRAMEWORK_TRUE@ $(top_builddir)/etc/Makeconf > "$(rhome)/etc/Makeconf")
0c57821 Add support for configurable framework version name on OS X and chang…
urbaneks authored
93 @WANT_R_FRAMEWORK_TRUE@ @(sed 's/Versions\/$(FW_VERSION)\/Resources/Resources/' \
c614025 new fixes for the R framework installation: patches to the SHLIB scri…
iacus authored
94 @WANT_R_FRAMEWORK_TRUE@ $(R_FRAMEWORK_DIR)/Resources/bin/R > \
95 @WANT_R_FRAMEWORK_TRUE@ $(R_FRAMEWORK_DIR)/Resources/bin/RR)
96 @WANT_R_FRAMEWORK_TRUE@ @(mv $(R_FRAMEWORK_DIR)/Resources/bin/RR $(R_FRAMEWORK_DIR)/Resources/bin/R)
97 @WANT_R_FRAMEWORK_TRUE@ @(chmod 755 $(R_FRAMEWORK_DIR)/Resources/bin/R)
6eee7cb branch update
ripley authored
98 @WANT_R_FRAMEWORK_TRUE@ @(cp $(R_FRAMEWORK_DIR)/Resources/bin/R $(R_FRAMEWORK_DIR)/Resources/R)
deb59cf Adjust install-R-framework to support multiple architectures and
urbaneks authored
99 @WANT_R_FRAMEWORK_TRUE@ @(chmod -R g+w $(R_FRAMEWORK_DIR))
c614025 new fixes for the R framework installation: patches to the SHLIB scri…
iacus authored
100
0f0950c move some files from SVN sources to `make dist'.
ripley authored
101 svnonly:
147bf7a repair last attempt at a fix
ripley authored
102 @if test ! -f "$(srcdir)/doc/FAQ" || test -f non-tarball ; then \
4d49f36 simplify make distclean
ripley authored
103 (cd doc/manual && $(MAKE) front-matter html-non-svn) ; \
0f0950c move some files from SVN sources to `make dist'.
ripley authored
104 touch non-tarball ; \
e7673f3 LC_ALL=C : svn info is locale dependent
maechler authored
105 (cd $(srcdir); LC_ALL=C TZ=GMT svn info || echo "Revision: unknown") 2> /dev/null \
beaf15d try harder to get svn info
ripley authored
106 | sed -n -e '/^Revision/p' -e '/^Last Changed Date/'p \
107 | cut -d' ' -f1,2,3,4 > SVN-REVISION-tmp ; \
108 if grep unknown SVN-REVISION-tmp > /dev/null ; then \
109 echo "Last Changed Date: Today" >> SVN-REVISION-tmp ; \
110 if test -f "$(srcdir)/.svn/entries" ; then \
111 rev=`grep committed-rev "$(srcdir)/.svn/entries" | head -1 | sed -e 's/^ *committed-rev=\"//' -e 's/\"//'`; \
112 cdate=`grep committed-date "$(srcdir)/.svn/entries" | head -1 | sed -e 's/^ *committed-date=\"//' -e 's/T.*//'`; \
113 sed -e "s/unknown/$${rev}/" -e "s/Today/$${cdate}/" SVN-REVISION-tmp > SVN-REVISION-tmp2; mv SVN-REVISION-tmp2 SVN-REVISION-tmp ; \
114 fi ; \
115 fi ; \
116 $(top_srcdir)/tools/move-if-change SVN-REVISION-tmp SVN-REVISION ; \
117 rm -f SVN-REVISION-tmp ; \
0f0950c move some files from SVN sources to `make dist'.
ripley authored
118 else \
119 if test "$(BUILDDIR_IS_SRCDIR)" = no ; then \
120 for f in $(NON_SVN_INSTFILES); do \
5e24ffc update DISTFILES, tweak install from make dist tarball
ripley authored
121 $(INSTALL_DATA) $(srcdir)/$${f} $(top_builddir); \
0f0950c move some files from SVN sources to `make dist'.
ripley authored
122 done \
123 fi \
124 fi
c614025 new fixes for the R framework installation: patches to the SHLIB scri…
iacus authored
125
d8c4034 add target to install libR.so
ripley authored
126 libR_la = lib/libR$(DYLIB_EXT)
127 install-libR:
128 @if test -f $(libR_la); then $(MAKE) install-libR-exists; fi
129 install-libR-exists:
130 @$(MKINSTALLDIRS) "${libdir}"
eeff286 set mode
ripley authored
131 @$(INSTALL_DATA) -m755 $(libR_la) "${libdir}"
d8c4034 add target to install libR.so
ripley authored
132
afe5b25 Improve installdirs target.
hornik authored
133 installdirs:
9a8aad7 More 'improvements' for the case where R_HOME contains spaces.
hornik authored
134 @$(MKINSTALLDIRS) "$(rhome)"
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
135 install-strip:
136 $(MAKE) INSTALL_PROGRAM="${INSTALL_PROGRAM} -s" install
137 uninstall:
89cc593 Make targets for build and (un)install more recursive.
hornik authored
138 @(for d in $(SUBDIRS); do rsd="$${d} $${rsd}"; done; \
139 for d in $${rsd}; do (cd $${d} && $(MAKE) $@); done)
b6a6356 tidy up make uninstall
ripley authored
140 @for f in $(INSTFILES) $(NON_SVN_INSTFILES); do \
9a8aad7 More 'improvements' for the case where R_HOME contains spaces.
hornik authored
141 rm -f "$(rhome)/$${f}"; \
a16651d New targets Makefile and uninstall.
hornik authored
142 done
45a71a3 make install works better with Solaris sh.
ripley authored
143 @rm -rf "$(Rexecbindir)" "$(rhome)/lib"
b6a6356 tidy up make uninstall
ripley authored
144 @rmdir "$(rhome)" 2>/dev/null \
145 || echo " dir $(rhome) not removed"
d8c4034 add target to install libR.so
ripley authored
146 @rm -f "${libdir}/libR$(DYLIB_EXT)"
1dbd666 added install-aqua target to the install procedure
iacus authored
147
1f7ea5b Rewrite.
hornik authored
148 mostlyclean: clean
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
149 clean:
4b393dc Reverse order of SUBDIRS for clean/disclean.
hornik authored
150 @(for d in $(SUBDIRS); do rsd="$${d} $${rsd}"; done; \
151 for d in $${rsd}; do (cd $${d} && $(MAKE) $@); done)
a437d9e Improve testing whether srcdir equals builddir.
hornik authored
152 @if test "$(BUILDDIR_IS_SRCDIR)" = no ; then \
120ce4a sort out some make distclean/make uninstall issues
ripley authored
153 rm -f $(INSTFILES); \
6f16fac branch update
pd authored
154 fi
1f7ea5b Rewrite.
hornik authored
155 distclean: clean
4b393dc Reverse order of SUBDIRS for clean/disclean.
hornik authored
156 @(for d in $(SUBDIRS); do rsd="$${d} $${rsd}"; done; \
157 for d in $${rsd}; do (cd $${d} && $(MAKE) $@); done)
7a48a55 distclean should remove the lib directory
ripley authored
158 -@rm -rf bin include lib library modules gnome
0f0950c move some files from SVN sources to `make dist'.
ripley authored
159 @if test -f non-tarball ; then \
4d49f36 simplify make distclean
ripley authored
160 rm -f $(NON_SVN_INSTFILES) non-tarball doc/FAQ doc/RESOURCES doc/html/resources.html ; \
161 fi
162 @if test "$(BUILDDIR_IS_SRCDIR)" = no ; then \
163 rm -f $(NON_SVN_INSTFILES); \
0f0950c move some files from SVN sources to `make dist'.
ripley authored
164 fi
f7688be Misc Makefile cleanups: FIXME, NOTE, quoting, and so on.
hornik authored
165 -@rm -f Makeconf Makefile Makefile.bak Makefrag.* \
3548e85 build ac{include,local} in the build tree as needed, don't ship
ripley authored
166 config.cache config.log config.status libtool \
0f0950c move some files from SVN sources to `make dist'.
ripley authored
167 $(ACLOCAL_M4) acinclude.m4 $(distdir).tar.gz
1f7ea5b Rewrite.
hornik authored
168 maintainer-clean: distclean
86f8f19 Install only front-end script to $(bindir).
hornik authored
169 @echo "This command is intended for maintainers to use; it"
92e8dab Add warning about effects of maintainer-clean.
hornik authored
170 @echo "deletes files that may need special rules to rebuild"
f7688be Misc Makefile cleanups: FIXME, NOTE, quoting, and so on.
hornik authored
171 @(for d in $(SUBDIRS); do rsd="$${d} $${rsd}"; done; \
172 for d in $${rsd}; do (cd $${d} && $(MAKE) $@); done)
8cbcb25 Remove 'autom4te.cache' in 'make maintainer-clean'.
hornik authored
173 -@(cd $(srcdir) && rm -rf autom4te.cache)
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
174
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
175 dist: dist-unix
176 dist-unix: distdir
177 -chmod -R a+r $(distdir)
96d3913 prevent wrong permissions from make dist
pd authored
178 -chmod -R go-w $(distdir)
25a5dc6 name dist tarball more sensibly
ripley authored
179 distname=`$(srcdir)/tools/GETDISTNAME`; \
5f19299 improve names of dist tarballs
ripley authored
180 dirname=`echo $${distname} | sed -e s/_.*//`; \
bfe6497 some systems think 'mv a a' is an error
ripley authored
181 if test $(distdir) != $${dirname} ; then \
182 mv $(distdir) $${dirname}; \
183 fi ; \
5f19299 improve names of dist tarballs
ripley authored
184 GZIP=$(GZIP) $(TAR) czf $${distname}.tar.gz $${dirname}; \
185 rm -rf $${dirname}
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
186 dist-win:
f7fda40 always have SVN-REVISION file
ripley authored
187 distdir: $(DISTFILES) vignettes
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
188 @rm -rf $(distdir)
189 @mkdir $(distdir)
190 @-chmod 755 $(distdir)
191 @for f in $(DISTFILES); do \
192 test -f $(distdir)/$${f} \
d061198 Replace leading spaces by tabs.
hornik authored
193 || ln $(srcdir)/$${f} $(distdir)/$${f} 2>/dev/null \
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
194 || cp -p $(srcdir)/$${f} $(distdir)/$${f}; \
195 done
f7fda40 always have SVN-REVISION file
ripley authored
196 @for f in $(NON_SVN_INSTFILES) ; do \
0f0950c move some files from SVN sources to `make dist'.
ripley authored
197 cp -p $${f} $(distdir)/$${f}; \
198 done
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
199 @for d in $(SUBDIRS); do \
200 test -d $(distdir)/$${d} \
201 || mkdir $(distdir)/$${d} \
202 || exit 1; \
203 chmod 755 $(distdir)/$${d}; \
204 (cd $${d} && $(MAKE) distdir) \
205 || exit 1; \
d061198 Replace leading spaces by tabs.
hornik authored
206 done
189bc25 Use Make variable 'SUBDIRS_WITH_NO_BUILD' to indicate subdirs where u…
hornik authored
207 @for d in $(SUBDIRS_WITH_NO_BUILD); do \
b9368b1 Teach make dist to exclude .svn subdirs.
hornik authored
208 ((cd $(srcdir); $(TAR) -c -f - $(DISTDIR_TAR_EXCLUDE) $${d}) \
189bc25 Use Make variable 'SUBDIRS_WITH_NO_BUILD' to indicate subdirs where u…
hornik authored
209 | (cd $(distdir); $(TAR) -x -f -)) \
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
210 || exit 1; \
211 done
98e20d7 ship the grid vignette index too
ripley authored
212 @cp library/grid/doc/*.pdf library/grid/doc/index.html \
213 $(distdir)/src/library/grid/inst/doc
0f0950c move some files from SVN sources to `make dist'.
ripley authored
214 @(cd $(distdir); tools/link-recommended)
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
215
bbbd710 Improve/simplify targets for checking.
hornik authored
216 dvi info pdf:
a16651d New targets Makefile and uninstall.
hornik authored
217 -@(cd doc && $(MAKE) $@)
bbbd710 Improve/simplify targets for checking.
hornik authored
218 install-dvi install-info install-pdf:
10da9f2 branch update
pd authored
219 -@(cd doc/manual && $(MAKE) $@)
bbbd710 Improve/simplify targets for checking.
hornik authored
220 uninstall-dvi uninstall-info uninstall-pdf:
10da9f2 branch update
pd authored
221 -@(cd doc/manual && $(MAKE) $@)
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
222
ecc3b53 new test targets
ripley authored
223 check check-devel check-all:
ba6787e branch update
pd authored
224 @(cd tests && $(MAKE) $@)
bbbd710 Improve/simplify targets for checking.
hornik authored
225
17300d7 Makefile support for bundling recommended packages
pd authored
226 reset-recommended:
93d29fc make fullcheck
pd authored
227 @(cd src/library/Recommended && $(MAKE) clean)
60ee3fa changes needed for the new RAqua and Rframework
iacus authored
228
0ee73c6 Set installation paths when building as a framework.
hornik authored
229 install-R-framework:
37bda51 port 37727 and 37728 from R-2-3-patches
urbaneks authored
230 @echo "Creating R framework ..."
0c57821 Add support for configurable framework version name on OS X and chang…
urbaneks authored
231 @(cd "$(R_FRAMEWORK_DIR)/Versions/$(FW_VERSION)" && \
d2e27ea in darwin specific chunks: changed ln -h with ln -n for compatibility
iacus authored
232 ln -f -s -n Resources/include Headers && \
37bda51 port 37727 and 37728 from R-2-3-patches
urbaneks authored
233 ln -f -s -n Resources/lib/libR.dylib R)
f1b3bb4 Try simplifying/standardizing installing R as a framework.
hornik authored
234 @(cd "$(R_FRAMEWORK_DIR)/Versions" && \
0c57821 Add support for configurable framework version name on OS X and chang…
urbaneks authored
235 ln -f -s -n $(FW_VERSION) Current)
f1b3bb4 Try simplifying/standardizing installing R as a framework.
hornik authored
236 @(cd "$(R_FRAMEWORK_DIR)" && \
87de142 r-framework installation changed to copy src/include in PrivateHeaders
iacus authored
237 ln -f -s -n Versions/Current/PrivateHeaders PrivateHeaders&& \
d2e27ea in darwin specific chunks: changed ln -h with ln -n for compatibility
iacus authored
238 ln -f -s -n Versions/Current/Headers Headers&& \
239 ln -f -s -n Versions/Current/R R && \
240 ln -f -s -n Versions/Current/Resources Resources)
deb59cf Adjust install-R-framework to support multiple architectures and
urbaneks authored
241 @## the resulting libR will point dyld to the fat libR regardless of its origin
0f0ae24 install-R-framework looks for libR.dylib in the wrong place.
tlumley authored
242 @(cd "$(R_FRAMEWORK_DIR)/Resources/lib" && \
deb59cf Adjust install-R-framework to support multiple architectures and
urbaneks authored
243 install_name_tool -id "$(R_FRAMEWORK_DIR)/Versions/$(FW_VERSION)/Resources/lib/libR.dylib" $(Rexeclibdir)/libR.dylib)
512a39d Framework cleanup and generate Info.plist
urbaneks authored
244 @(for lib in Rlapack Rblas R; do \
245 if test -e "$(Rexeclibdir)/lib$${lib}.dylib"; then echo " lib$${lib}"; \
246 find "$(R_FRAMEWORK_DIR)/Versions/$(FW_VERSION)/Resources/" -name '*.so' -or -name '*.dylib' | \
247 xargs -n 1 install_name_tool -change \
248 `otool -L $(Rexeclibdir)/lib$${lib}.dylib |sed -n -e '2 s/.\(.*\) (compat.*/\1/p'` \
249 "$(R_FRAMEWORK_DIR)/Versions/$(FW_VERSION)/Resources/lib/lib$${lib}.dylib" ; \
250 install_name_tool -id "$(R_FRAMEWORK_DIR)/Versions/$(FW_VERSION)/Resources/lib/lib$${lib}.dylib" \
251 "$(Rexeclibdir)/lib$${lib}.dylib"; \
252 if [ "$(Rexeclibdir)" != "$(R_FRAMEWORK_DIR)/Versions/$(FW_VERSION)/Resources/lib" ]; then \
253 $(srcdir)/tools/updatefat "$(R_FRAMEWORK_DIR)/Versions/$(FW_VERSION)/Resources/lib/lib$${lib}.dylib" "$(Rexeclibdir)/lib$${lib}.dylib"; \
254 fi; \
255 fi; \
256 done)
0c57821 Add support for configurable framework version name on OS X and chang…
urbaneks authored
257 @(cp -R $(srcdir)/src/include $(R_FRAMEWORK_DIR)/Versions/Current/PrivateHeaders && \
deb59cf Adjust install-R-framework to support multiple architectures and
urbaneks authored
258 cp src/include/config.h $(R_FRAMEWORK_DIR)/Versions/Current/PrivateHeaders/ && \
0c57821 Add support for configurable framework version name on OS X and chang…
urbaneks authored
259 find $(R_FRAMEWORK_DIR)/Versions/Current/PrivateHeaders -name .svn | xargs rm -rf)
260 @(install_name_tool -change libR.dylib \
261 "$(R_FRAMEWORK_DIR)/Versions/$(FW_VERSION)/Resources/lib/libR.dylib" \
deb59cf Adjust install-R-framework to support multiple architectures and
urbaneks authored
262 $(Rexecbindir2)/R)
37bda51 port 37727 and 37728 from R-2-3-patches
urbaneks authored
263 @(if [ -n "${R_ARCH}" ]; then \
264 if [ "${R_ARCH}" != /ppc -a "${R_ARCH}" != /i386 -a "${R_ARCH}" != /ppc64 ]; then \
265 echo "\
266 *** WARNING: The architecture name is incompatible with Apple's naming~ convention. This may prevent applications from using the R~ framework. Please use i386, ppc or ppc64 as architecture~ names to allow universal builds."|sed 'y/~/\n/' >&2; \
267 else \
268 for f in `ls "$(R_FRAMEWORK_DIR)/Versions/$(FW_VERSION)/Headers/${R_ARCH}/"*.h|xargs basename`; do \
269 echo "/* This is an automatically generated universal stub for architecture-dependent headers. */~#ifdef __i386__~#include <i386/$$f>~#else~#ifdef __ppc__~#include <ppc/$$f>~#else~#ifdef __ppc64__~#include <ppc64/$$f>~#else~#error Cannot determine the correct architecture. To force a certain configuration, include architecture-specific include path *before* general R headers path.~#endif~#endif~#endif" |sed -e 'y/~/\n/' > "$(R_FRAMEWORK_DIR)/Versions/$(FW_VERSION)/Headers/$$f"; \
270 done; \
512a39d Framework cleanup and generate Info.plist
urbaneks authored
271 fi; \
37bda51 port 37727 and 37728 from R-2-3-patches
urbaneks authored
272 fi )
512a39d Framework cleanup and generate Info.plist
urbaneks authored
273 @( echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>~<!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">~<plist version=\"1.0\">~<dict>~ <key>CFBundleIdentifier</key>~ <string>org.r-project.R-framework</string>~ <key>CFBundleInfoDictionaryVersion</key>~ <string>6.0</string>~ <key>CFBundleName</key>~ <string>R</string>~ <key>CFBundlePackageType</key>~ <string>FMWK</string>~ <key>CFBundleVersion</key>~ <string>$(VERSION)</string>~</dict>~</plist>" |sed -e 'y/~/\n/' > $(R_FRAMEWORK_DIR)/Versions/$(FW_VERSION)/Resources/Info.plist)
37bda51 port 37727 and 37728 from R-2-3-patches
urbaneks authored
274
660b7fd modified Rframework target
iacus authored
275 TAGS:
Something went wrong with that request. Please try again.