Skip to content
Newer
Older
100644 276 lines (251 sloc) 10.8 KB
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored Sep 15, 1998
1 #
3f74187 Rename RHOME to R_HOME.
hornik authored May 11, 1999
2 # ${R_HOME}/Makefile
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored Sep 15, 1998
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 Oct 5, 1998
12 distdir = $(PACKAGE)-$(VERSION)
3e5a783 start moving top-level docs to doc/ for easier split installations
ripley authored Dec 12, 2005
13 INSTFILES = COPYING NEWS
14 NON_SVN_INSTFILES = SVN-REVISION
c7b5dc4 branch update - not bugfree
pd authored Oct 7, 1999
15 DISTFILES = $(INSTFILES) \
f9e88be remove Y2K
ripley authored Dec 12, 2005
16 ChangeLog INSTALL ONEWS OONEWS README VERSION \
a2d7cb8 Remove `stamp-R' when updating.
hornik authored Oct 5, 1998
17 Makeconf.in Makefile.in \
76a7f91 remove 'date-stamp' from DISTFILES
maechler authored Jun 8, 2005
18 config.site configure configure.ac
a3eef76 improve NLS, especially if --disable-nls
ripley authored Aug 9, 2005
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 Dec 12, 2005
20 SUBDIRS_WITH_NO_BUILD = @USE_NLS_FALSE@ po
a2d7cb8 Remove `stamp-R' when updating.
hornik authored Oct 5, 1998
21
f0cc021 distribute grid vignettes in the tarballs and don't make by default
ripley authored Aug 24, 2004
22 all: Makefile Makeconf R docs recommended
8fe7435 make recommended packages before vignettes (as use lattice, at least …
ripley authored Aug 20, 2004
23 recommended: @USE_RECOMMENDED_PACKAGES_TRUE@ stamp-recommended
1f7ea5b Rewrite.
hornik authored Sep 17, 1998
24
ba6787e branch update
pd authored May 8, 1999
25 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
3f2fe45 Rename 'configure.in' to 'configure.ac'.
hornik authored Jan 20, 2002
26 @cd $(top_builddir) && $(SHELL) ./config.status $@
b2a3d9a Misc fixes and cleanups.
hornik authored Feb 21, 2000
27 Makeconf: $(srcdir)/Makeconf.in $(top_builddir)/config.status
3f2fe45 Rename 'configure.in' to 'configure.ac'.
hornik authored Jan 20, 2002
28 @cd $(top_builddir) && $(SHELL) ./config.status $@
b2a3d9a Misc fixes and cleanups.
hornik authored Feb 21, 2000
29
3548e85 build ac{include,local} in the build tree as needed, don't ship
ripley authored Oct 15, 2004
30 ACLOCAL_M4 = aclocal.m4
06e1709 Create `aclocal.m4' from `m4/*' via `acconfig.h'.
hornik authored May 17, 2001
31 ACINCLUDE_DEPENDENCIES = \
4d29d3d Split `acinclude.m4' into new subdir `m4'.
hornik authored May 14, 2001
32 m4/R.m4 \
d7c77fd more cleaning up of FLIBS
ripley authored Nov 19, 2004
33 m4/clibs.m4 \
faf7cb1 branch update
ripley authored Apr 18, 2004
34 m4/codeset.m4 \
f5eef21 add gettext-lib.m4, as not always already installed
ripley authored Dec 26, 2005
35 m4/gettext.m4 m4/gettext-lib.m4 \
6fd3006 Add Java support to configure (append java library path to R_LD_LIBRA…
urbaneks authored Sep 8, 2005
36 m4/java.m4 \
4d29d3d Split `acinclude.m4' into new subdir `m4'.
hornik authored May 14, 2001
37 m4/libtool.m4
530510d configure needs a dependency on VERSION.
hornik authored Jan 22, 2002
38 CONFIGURE_DEPENDENCIES = $(srcdir)/VERSION
b2a3d9a Misc fixes and cleanups.
hornik authored Feb 21, 2000
39 config.status: $(srcdir)/configure
e6f219c Improve automatic remaking.
hornik authored Mar 6, 2000
40 @$(SHELL) ./config.status --recheck
530510d configure needs a dependency on VERSION.
hornik authored Jan 22, 2002
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 Oct 15, 2004
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 Oct 19, 2004
45 acinclude.m4: $(srcdir)/configure.ac $(ACINCLUDE_DEPENDENCIES)
3548e85 build ac{include,local} in the build tree as needed, don't ship
ripley authored Oct 15, 2004
46 @(cd $(srcdir) && cat $(ACINCLUDE_DEPENDENCIES)) > $@
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored Sep 15, 1998
47
e1acdaf Start support for libtool and R shared library.
hornik authored Oct 23, 2000
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 Oct 15, 2004
52 R: Makefile svnonly
a437d9e Improve testing whether srcdir equals builddir.
hornik authored Apr 17, 2001
53 @if test "$(BUILDDIR_IS_SRCDIR)" = no ; then \
6f16fac branch update
pd authored Dec 26, 1999
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 May 11, 2001
58 @for d in $(SUBDIRS); do \
aa7eb80 branch update
pd authored Dec 4, 1998
59 (cd $${d} && $(MAKE) R) || exit 1; \
0aaec01 Add demos in install and clean.
hornik authored Sep 22, 1998
60 done
8cbcb25 Remove 'autom4te.cache' in 'make maintainer-clean'.
hornik authored Apr 30, 2002
61 @test -f src/library/stamp-docs || \
62 echo "you should 'make docs' now ..."
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored Sep 15, 1998
63
1c06edb branch update
ripley authored Oct 22, 2002
64 docs: R FORCE
640f330 Build HTML versions of texinfo manuals.
hornik authored Oct 6, 2000
65 -@(cd doc && $(MAKE) $@)
66 -@(cd src/library && $(MAKE) $@)
67 help html latex examples: FORCE
a16651d New targets Makefile and uninstall.
hornik authored Sep 28, 1998
68 -@(cd src/library && $(MAKE) $@)
1f7ea5b Rewrite.
hornik authored Sep 17, 1998
69 FORCE:
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored Sep 15, 1998
70
49dde09 updated mechanism re. recommended packages
pd authored Sep 8, 2002
71 stamp-recommended: R docs
368bb7f Improve target 'stamp-recommended'.
hornik authored Oct 28, 2002
72 @(cd src/library/Recommended && $(MAKE))
3ca2d9e Further changes related to recommended packages.
hornik authored Sep 4, 2002
73
8fe7435 make recommended packages before vignettes (as use lattice, at least …
ripley authored Aug 20, 2004
74 vignettes: stamp-recommended
75 -@(cd src/library && $(MAKE) $@)
76
0f0950c move some files from SVN sources to `make dist'.
ripley authored Oct 15, 2004
77 install: installdirs svnonly
89cc593 Make targets for build and (un)install more recursive.
hornik authored May 11, 2001
78 @for d in $(SUBDIRS); do \
aa7eb80 branch update
pd authored Dec 4, 1998
79 (cd $${d} && $(MAKE) $@) || exit 1; \
a16651d New targets Makefile and uninstall.
hornik authored Sep 28, 1998
80 done
fd3265c Fix installation bug.
hornik authored Apr 8, 2000
81 @for f in $(INSTFILES); do \
b164a43 More 'improvements' for the case where R_HOME contains spaces.
hornik authored Jul 19, 2004
82 $(INSTALL_DATA) $(srcdir)/$${f} "$(rhome)"; \
fd3265c Fix installation bug.
hornik authored Apr 8, 2000
83 done
3e5a783 start moving top-level docs to doc/ for easier split installations
ripley authored Dec 12, 2005
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 Oct 15, 2004
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 Feb 20, 2004
90 @WANT_R_FRAMEWORK_TRUE@ $(MAKE) install-R-framework
0c57821 Add support for configurable framework version name on OS X and chang…
urbaneks authored Sep 8, 2005
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 Jul 19, 2004
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 Sep 8, 2005
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 Feb 29, 2004
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 Jun 8, 2004
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 Feb 9, 2006
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 Feb 29, 2004
100
0f0950c move some files from SVN sources to `make dist'.
ripley authored Oct 15, 2004
101 svnonly:
147bf7a repair last attempt at a fix
ripley authored Dec 20, 2005
102 @if test ! -f "$(srcdir)/doc/FAQ" || test -f non-tarball ; then \
f7fda40 always have SVN-REVISION file
ripley authored May 18, 2005
103 (cd doc/manual && $(MAKE) front-matter) ; \
0f0950c move some files from SVN sources to `make dist'.
ripley authored Oct 15, 2004
104 touch non-tarball ; \
e7673f3 LC_ALL=C : svn info is locale dependent
maechler authored Jun 6, 2005
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 May 18, 2005
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 Oct 15, 2004
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 Oct 22, 2004
121 $(INSTALL_DATA) $(srcdir)/$${f} $(top_builddir); \
0f0950c move some files from SVN sources to `make dist'.
ripley authored Oct 15, 2004
122 done \
123 fi \
124 fi
c614025 new fixes for the R framework installation: patches to the SHLIB scri…
iacus authored Feb 29, 2004
125
d8c4034 add target to install libR.so
ripley authored Apr 20, 2005
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 Apr 20, 2005
131 @$(INSTALL_DATA) -m755 $(libR_la) "${libdir}"
d8c4034 add target to install libR.so
ripley authored Apr 20, 2005
132
afe5b25 Improve installdirs target.
hornik authored Sep 15, 1998
133 installdirs:
9a8aad7 More 'improvements' for the case where R_HOME contains spaces.
hornik authored Jul 19, 2004
134 @$(MKINSTALLDIRS) "$(rhome)"
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored Sep 15, 1998
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 May 11, 2001
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 Apr 20, 2005
140 @for f in $(INSTFILES) $(NON_SVN_INSTFILES); do \
9a8aad7 More 'improvements' for the case where R_HOME contains spaces.
hornik authored Jul 19, 2004
141 rm -f "$(rhome)/$${f}"; \
a16651d New targets Makefile and uninstall.
hornik authored Sep 28, 1998
142 done
9a8aad7 More 'improvements' for the case where R_HOME contains spaces.
hornik authored Jul 19, 2004
143 @rm -rf "$(Rexecbindir)" "$(Rexeclibdir)"
b6a6356 tidy up make uninstall
ripley authored Apr 20, 2005
144 @rmdir "$(rhome)" 2>/dev/null \
145 || echo " dir $(rhome) not removed"
d8c4034 add target to install libR.so
ripley authored Apr 20, 2005
146 @rm -f "${libdir}/libR$(DYLIB_EXT)"
1dbd666 added install-aqua target to the install procedure
iacus authored Aug 4, 2003
147
1f7ea5b Rewrite.
hornik authored Sep 17, 1998
148 mostlyclean: clean
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored Sep 15, 1998
149 clean:
4b393dc Reverse order of SUBDIRS for clean/disclean.
hornik authored May 21, 2001
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 Apr 17, 2001
152 @if test "$(BUILDDIR_IS_SRCDIR)" = no ; then \
120ce4a sort out some make distclean/make uninstall issues
ripley authored Jan 7, 2006
153 rm -f $(INSTFILES); \
6f16fac branch update
pd authored Dec 26, 1999
154 fi
1f7ea5b Rewrite.
hornik authored Sep 17, 1998
155 distclean: clean
4b393dc Reverse order of SUBDIRS for clean/disclean.
hornik authored May 21, 2001
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 Jun 28, 2004
158 -@rm -rf bin include lib library modules gnome
0f0950c move some files from SVN sources to `make dist'.
ripley authored Oct 15, 2004
159 @if test -f non-tarball ; then \
160 rm -f $(NON_SVN_INSTFILES) non-tarball ; \
161 fi
f7688be Misc Makefile cleanups: FIXME, NOTE, quoting, and so on.
hornik authored Mar 10, 2002
162 -@rm -f Makeconf Makefile Makefile.bak Makefrag.* \
3548e85 build ac{include,local} in the build tree as needed, don't ship
ripley authored Oct 15, 2004
163 config.cache config.log config.status libtool \
0f0950c move some files from SVN sources to `make dist'.
ripley authored Oct 15, 2004
164 $(ACLOCAL_M4) acinclude.m4 $(distdir).tar.gz
1f7ea5b Rewrite.
hornik authored Sep 17, 1998
165 maintainer-clean: distclean
86f8f19 Install only front-end script to $(bindir).
hornik authored Jan 21, 2000
166 @echo "This command is intended for maintainers to use; it"
92e8dab Add warning about effects of maintainer-clean.
hornik authored Jan 4, 2000
167 @echo "deletes files that may need special rules to rebuild"
f7688be Misc Makefile cleanups: FIXME, NOTE, quoting, and so on.
hornik authored Mar 10, 2002
168 @(for d in $(SUBDIRS); do rsd="$${d} $${rsd}"; done; \
169 for d in $${rsd}; do (cd $${d} && $(MAKE) $@); done)
8cbcb25 Remove 'autom4te.cache' in 'make maintainer-clean'.
hornik authored Apr 30, 2002
170 -@(cd $(srcdir) && rm -rf autom4te.cache)
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored Sep 15, 1998
171
a2d7cb8 Remove `stamp-R' when updating.
hornik authored Oct 5, 1998
172 dist: dist-unix
173 dist-unix: distdir
174 -chmod -R a+r $(distdir)
96d3913 prevent wrong permissions from make dist
pd authored Sep 10, 2003
175 -chmod -R go-w $(distdir)
25a5dc6 name dist tarball more sensibly
ripley authored Oct 18, 2004
176 distname=`$(srcdir)/tools/GETDISTNAME`; \
5f19299 improve names of dist tarballs
ripley authored Oct 22, 2004
177 dirname=`echo $${distname} | sed -e s/_.*//`; \
bfe6497 some systems think 'mv a a' is an error
ripley authored Nov 16, 2004
178 if test $(distdir) != $${dirname} ; then \
179 mv $(distdir) $${dirname}; \
180 fi ; \
5f19299 improve names of dist tarballs
ripley authored Oct 22, 2004
181 GZIP=$(GZIP) $(TAR) czf $${distname}.tar.gz $${dirname}; \
182 rm -rf $${dirname}
a2d7cb8 Remove `stamp-R' when updating.
hornik authored Oct 5, 1998
183 dist-win:
f7fda40 always have SVN-REVISION file
ripley authored May 18, 2005
184 distdir: $(DISTFILES) vignettes
a2d7cb8 Remove `stamp-R' when updating.
hornik authored Oct 5, 1998
185 @rm -rf $(distdir)
186 @mkdir $(distdir)
187 @-chmod 755 $(distdir)
188 @for f in $(DISTFILES); do \
189 test -f $(distdir)/$${f} \
d061198 Replace leading spaces by tabs.
hornik authored Jan 7, 2000
190 || ln $(srcdir)/$${f} $(distdir)/$${f} 2>/dev/null \
a2d7cb8 Remove `stamp-R' when updating.
hornik authored Oct 5, 1998
191 || cp -p $(srcdir)/$${f} $(distdir)/$${f}; \
192 done
f7fda40 always have SVN-REVISION file
ripley authored May 18, 2005
193 @for f in $(NON_SVN_INSTFILES) ; do \
0f0950c move some files from SVN sources to `make dist'.
ripley authored Oct 15, 2004
194 cp -p $${f} $(distdir)/$${f}; \
195 done
a2d7cb8 Remove `stamp-R' when updating.
hornik authored Oct 5, 1998
196 @for d in $(SUBDIRS); do \
197 test -d $(distdir)/$${d} \
198 || mkdir $(distdir)/$${d} \
199 || exit 1; \
200 chmod 755 $(distdir)/$${d}; \
201 (cd $${d} && $(MAKE) distdir) \
202 || exit 1; \
d061198 Replace leading spaces by tabs.
hornik authored Jan 7, 2000
203 done
189bc25 Use Make variable 'SUBDIRS_WITH_NO_BUILD' to indicate subdirs where u…
hornik authored Jun 8, 2002
204 @for d in $(SUBDIRS_WITH_NO_BUILD); do \
b9368b1 Teach make dist to exclude .svn subdirs.
hornik authored Aug 2, 2004
205 ((cd $(srcdir); $(TAR) -c -f - $(DISTDIR_TAR_EXCLUDE) $${d}) \
189bc25 Use Make variable 'SUBDIRS_WITH_NO_BUILD' to indicate subdirs where u…
hornik authored Jun 8, 2002
206 | (cd $(distdir); $(TAR) -x -f -)) \
a2d7cb8 Remove `stamp-R' when updating.
hornik authored Oct 5, 1998
207 || exit 1; \
208 done
98e20d7 ship the grid vignette index too
ripley authored Aug 24, 2004
209 @cp library/grid/doc/*.pdf library/grid/doc/index.html \
210 $(distdir)/src/library/grid/inst/doc
0f0950c move some files from SVN sources to `make dist'.
ripley authored Oct 15, 2004
211 @(cd $(distdir); tools/link-recommended)
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored Sep 15, 1998
212
bbbd710 Improve/simplify targets for checking.
hornik authored Jun 3, 2001
213 dvi info pdf:
a16651d New targets Makefile and uninstall.
hornik authored Sep 28, 1998
214 -@(cd doc && $(MAKE) $@)
bbbd710 Improve/simplify targets for checking.
hornik authored Jun 3, 2001
215 install-dvi install-info install-pdf:
10da9f2 branch update
pd authored Dec 11, 1999
216 -@(cd doc/manual && $(MAKE) $@)
bbbd710 Improve/simplify targets for checking.
hornik authored Jun 3, 2001
217 uninstall-dvi uninstall-info uninstall-pdf:
10da9f2 branch update
pd authored Dec 11, 1999
218 -@(cd doc/manual && $(MAKE) $@)
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored Sep 15, 1998
219
ecc3b53 new test targets
ripley authored Mar 13, 2003
220 check check-devel check-all:
ba6787e branch update
pd authored May 8, 1999
221 @(cd tests && $(MAKE) $@)
bbbd710 Improve/simplify targets for checking.
hornik authored Jun 3, 2001
222
17300d7 Makefile support for bundling recommended packages
pd authored Sep 1, 2002
223 reset-recommended:
93d29fc make fullcheck
pd authored Sep 9, 2002
224 @(cd src/library/Recommended && $(MAKE) clean)
60ee3fa changes needed for the new RAqua and Rframework
iacus authored Dec 8, 2003
225
0ee73c6 Set installation paths when building as a framework.
hornik authored Jan 9, 2004
226 install-R-framework:
8e811b9 Fixes for install-R-framework
urbaneks authored Apr 12, 2006
227 @echo "Creating R framework ..."
0c57821 Add support for configurable framework version name on OS X and chang…
urbaneks authored Sep 8, 2005
228 @(cd "$(R_FRAMEWORK_DIR)/Versions/$(FW_VERSION)" && \
d2e27ea in darwin specific chunks: changed ln -h with ln -n for compatibility
iacus authored Apr 5, 2004
229 ln -f -s -n Resources/include Headers && \
8e811b9 Fixes for install-R-framework
urbaneks authored Apr 12, 2006
230 ln -f -s -n Resources/lib/libR.dylib R)
f1b3bb4 Try simplifying/standardizing installing R as a framework.
hornik authored Feb 3, 2004
231 @(cd "$(R_FRAMEWORK_DIR)/Versions" && \
0c57821 Add support for configurable framework version name on OS X and chang…
urbaneks authored Sep 8, 2005
232 ln -f -s -n $(FW_VERSION) Current)
f1b3bb4 Try simplifying/standardizing installing R as a framework.
hornik authored Feb 3, 2004
233 @(cd "$(R_FRAMEWORK_DIR)" && \
87de142 r-framework installation changed to copy src/include in PrivateHeaders
iacus authored Sep 15, 2004
234 ln -f -s -n Versions/Current/PrivateHeaders PrivateHeaders&& \
d2e27ea in darwin specific chunks: changed ln -h with ln -n for compatibility
iacus authored Apr 5, 2004
235 ln -f -s -n Versions/Current/Headers Headers&& \
236 ln -f -s -n Versions/Current/R R && \
237 ln -f -s -n Versions/Current/Resources Resources)
deb59cf Adjust install-R-framework to support multiple architectures and
urbaneks authored Feb 9, 2006
238 @## 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 Aug 31, 2004
239 @(cd "$(R_FRAMEWORK_DIR)/Resources/lib" && \
deb59cf Adjust install-R-framework to support multiple architectures and
urbaneks authored Feb 9, 2006
240 install_name_tool -id "$(R_FRAMEWORK_DIR)/Versions/$(FW_VERSION)/Resources/lib/libR.dylib" $(Rexeclibdir)/libR.dylib)
c2320a0 Fix incorrect id of libRlapack.dylib in install-R-framework
urbaneks authored Apr 19, 2006
241 @(if test -e $(Rexeclibdir)/libRlapack.dylib; then \
242 find "$(R_FRAMEWORK_DIR)/Versions/$(FW_VERSION)/Resources/" -name '*.so' -or -name '*.dylib' | \
243 xargs -n 1 install_name_tool -change \
244 `otool -L $(Rexeclibdir)/libRlapack.dylib |sed -n -e '2 s/.\(.*\) (compat.*/\1/p'` \
245 "$(R_FRAMEWORK_DIR)/Versions/$(FW_VERSION)/Resources/lib/libRlapack.dylib" ; \
246 install_name_tool -id "$(R_FRAMEWORK_DIR)/Versions/$(FW_VERSION)/Resources/lib/libRlapack.dylib" \
247 $(Rexeclibdir)/libRlapack.dylib; \
248 fi)
0c57821 Add support for configurable framework version name on OS X and chang…
urbaneks authored Sep 8, 2005
249 @(cp -R $(srcdir)/src/include $(R_FRAMEWORK_DIR)/Versions/Current/PrivateHeaders && \
deb59cf Adjust install-R-framework to support multiple architectures and
urbaneks authored Feb 9, 2006
250 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 Sep 8, 2005
251 find $(R_FRAMEWORK_DIR)/Versions/Current/PrivateHeaders -name .svn | xargs rm -rf)
252
253 @(install_name_tool -change libR.dylib \
254 "$(R_FRAMEWORK_DIR)/Versions/$(FW_VERSION)/Resources/lib/libR.dylib" \
deb59cf Adjust install-R-framework to support multiple architectures and
urbaneks authored Feb 9, 2006
255 $(Rexecbindir2)/R)
256 @(find "$(R_FRAMEWORK_DIR)/Versions/$(FW_VERSION)/Resources/" -name '*.so' -exec install_name_tool \
0c57821 Add support for configurable framework version name on OS X and chang…
urbaneks authored Sep 8, 2005
257 -change libR.dylib "$(R_FRAMEWORK_DIR)/Versions/$(FW_VERSION)/Resources/lib/libR.dylib" \{\} \;)
deb59cf Adjust install-R-framework to support multiple architectures and
urbaneks authored Feb 9, 2006
258 @(if [ "$(Rexeclibdir)" != "$(R_FRAMEWORK_DIR)/Versions/$(FW_VERSION)/Resources/lib" ]; then \
259 $(srcdir)/tools/updatefat "$(R_FRAMEWORK_DIR)/Versions/$(FW_VERSION)/Resources/lib/libR.dylib" "$(Rexeclibdir)/libR.dylib"; \
260 if [ -e "$(Rexeclibdir)/libRlapack.dylib" ]; then \
261 $(srcdir)/tools/updatefat "$(R_FRAMEWORK_DIR)/Versions/$(FW_VERSION)/Resources/lib/libRlapack.dylib" "$(Rexeclibdir)/libRlapack.dylib"; \
262 fi \
263 fi )
8e811b9 Fixes for install-R-framework
urbaneks authored Apr 12, 2006
264 @(if [ -n "${R_ARCH}" ]; then \
265 if [ "${R_ARCH}" != /ppc -a "${R_ARCH}" != /i386 -a "${R_ARCH}" != /ppc64 ]; then \
266 echo "\
267 *** 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; \
268 else \
269 for f in `ls "$(R_FRAMEWORK_DIR)/Versions/$(FW_VERSION)/Headers/${R_ARCH}/"*.h|xargs basename`; do \
270 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"; \
271 done; \
272 fi \
273 fi )
274
660b7fd modified Rframework target
iacus authored Dec 6, 2003
275 TAGS:
Something went wrong with that request. Please try again.