Skip to content
Newer
Older
100644 223 lines (199 sloc) 7.3 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)
0f0950c move some files from SVN sources to `make dist'.
ripley authored
13 INSTFILES = AUTHORS COPYING COPYING.LIB COPYRIGHTS NEWS THANKS
14 NON_SVN_INSTFILES = FAQ RESOURCES
c7b5dc4 branch update - not bugfree
pd authored
15 DISTFILES = $(INSTFILES) \
5e24ffc update DISTFILES, tweak install from make dist tarball
ripley authored
16 ChangeLog INSTALL ONEWS OONEWS README VERSION Y2K \
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
17 Makeconf.in Makefile.in \
3f2fe45 Rename 'configure.in' to 'configure.ac'.
hornik authored
18 config.site configure configure.ac \
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
19 date-stamp
4d29d3d Split `acinclude.m4' into new subdir `m4'.
hornik authored
20 SUBDIRS = m4 tools afm doc etc share src tests
189bc25 Use Make variable 'SUBDIRS_WITH_NO_BUILD' to indicate subdirs where u…
hornik authored
21 SUBDIRS_WITH_NO_BUILD = debian
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
22
f0cc021 distribute grid vignettes in the tarballs and don't make by default
ripley authored
23 all: Makefile Makeconf R docs recommended
8fe7435 make recommended packages before vignettes (as use lattice, at least …
ripley authored
24 recommended: @USE_RECOMMENDED_PACKAGES_TRUE@ stamp-recommended
1f7ea5b Rewrite.
hornik authored
25
ba6787e branch update
pd authored
26 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
3f2fe45 Rename 'configure.in' to 'configure.ac'.
hornik authored
27 @cd $(top_builddir) && $(SHELL) ./config.status $@
b2a3d9a Misc fixes and cleanups.
hornik authored
28 Makeconf: $(srcdir)/Makeconf.in $(top_builddir)/config.status
3f2fe45 Rename 'configure.in' to 'configure.ac'.
hornik authored
29 @cd $(top_builddir) && $(SHELL) ./config.status $@
b2a3d9a Misc fixes and cleanups.
hornik authored
30
3548e85 build ac{include,local} in the build tree as needed, don't ship
ripley authored
31 ACLOCAL_M4 = aclocal.m4
06e1709 Create `aclocal.m4' from `m4/*' via `acconfig.h'.
hornik authored
32 ACINCLUDE_DEPENDENCIES = \
4d29d3d Split `acinclude.m4' into new subdir `m4'.
hornik authored
33 m4/R.m4 \
faf7cb1 branch update
ripley authored
34 m4/codeset.m4 \
4d29d3d Split `acinclude.m4' into new subdir `m4'.
hornik authored
35 m4/gnome-gnorba-check.m4 \
36 m4/gnome-orbit-check.m4 \
37 m4/gnome.m4 \
38 m4/libglade.m4 \
39 m4/libtool.m4
530510d configure needs a dependency on VERSION.
hornik authored
40 CONFIGURE_DEPENDENCIES = $(srcdir)/VERSION
b2a3d9a Misc fixes and cleanups.
hornik authored
41 config.status: $(srcdir)/configure
e6f219c Improve automatic remaking.
hornik authored
42 @$(SHELL) ./config.status --recheck
530510d configure needs a dependency on VERSION.
hornik authored
43 $(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
44 @BD=`pwd`; cd $(srcdir) && $(AUTOCONF) -B $${BD}
45 $(ACLOCAL_M4): $(srcdir)/configure.ac acinclude.m4
46 @BD=`pwd`; cd $(srcdir) && $(ACLOCAL) --output=$${BD}/$@ -I $${BD}
f8d4977 lost dependencies
ripley authored
47 acinclude.m4: $(srcdir)/configure.ac $(ACINCLUDE_DEPENDENCIES)
3548e85 build ac{include,local} in the build tree as needed, don't ship
ripley authored
48 @(cd $(srcdir) && cat $(ACINCLUDE_DEPENDENCIES)) > $@
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
49
e1acdaf Start support for libtool and R shared library.
hornik authored
50 LIBTOOL_DEPS = @LIBTOOL_DEPS@
51 libtool: $(LIBTOOL_DEPS)
52 $(SHELL) ./config.status --recheck
53
0f0950c move some files from SVN sources to `make dist'.
ripley authored
54 R: Makefile svnonly
a437d9e Improve testing whether srcdir equals builddir.
hornik authored
55 @if test "$(BUILDDIR_IS_SRCDIR)" = no ; then \
6f16fac branch update
pd authored
56 for f in $(INSTFILES); do \
57 $(INSTALL_DATA) $(srcdir)/$${f} $(top_builddir); \
58 done; \
59 fi
89cc593 Make targets for build and (un)install more recursive.
hornik authored
60 @for d in $(SUBDIRS); do \
aa7eb80 branch update
pd authored
61 (cd $${d} && $(MAKE) R) || exit 1; \
0aaec01 Add demos in install and clean.
hornik authored
62 done
8cbcb25 Remove 'autom4te.cache' in 'make maintainer-clean'.
hornik authored
63 @test -f src/library/stamp-docs || \
64 echo "you should 'make docs' now ..."
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
65
1c06edb branch update
ripley authored
66 docs: R FORCE
640f330 Build HTML versions of texinfo manuals.
hornik authored
67 -@(cd doc && $(MAKE) $@)
68 -@(cd src/library && $(MAKE) $@)
69 help html latex examples: FORCE
a16651d New targets Makefile and uninstall.
hornik authored
70 -@(cd src/library && $(MAKE) $@)
1f7ea5b Rewrite.
hornik authored
71 FORCE:
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
72
49dde09 updated mechanism re. recommended packages
pd authored
73 stamp-recommended: R docs
368bb7f Improve target 'stamp-recommended'.
hornik authored
74 @(cd src/library/Recommended && $(MAKE))
3ca2d9e Further changes related to recommended packages.
hornik authored
75
8fe7435 make recommended packages before vignettes (as use lattice, at least …
ripley authored
76 vignettes: stamp-recommended
77 -@(cd src/library && $(MAKE) $@)
78
0f0950c move some files from SVN sources to `make dist'.
ripley authored
79 install: installdirs svnonly
89cc593 Make targets for build and (un)install more recursive.
hornik authored
80 @for d in $(SUBDIRS); do \
aa7eb80 branch update
pd authored
81 (cd $${d} && $(MAKE) $@) || exit 1; \
a16651d New targets Makefile and uninstall.
hornik authored
82 done
fd3265c Fix installation bug.
hornik authored
83 @for f in $(INSTFILES); do \
b164a43 More 'improvements' for the case where R_HOME contains spaces.
hornik authored
84 $(INSTALL_DATA) $(srcdir)/$${f} "$(rhome)"; \
fd3265c Fix installation bug.
hornik authored
85 done
0f0950c move some files from SVN sources to `make dist'.
ripley authored
86 @for f in $(NON_SVN_INSTFILES); do \
87 $(INSTALL_DATA) $${f} "$(rhome)"; \
88 done
a69edad fixed small problems with symlink in the R.framework
iacus authored
89 @WANT_R_FRAMEWORK_TRUE@ $(MAKE) install-R-framework
90 @WANT_R_FRAMEWORK_TRUE@ @(sed 's/^LIBR =.*/LIBR = -framework R/' \
b164a43 More 'improvements' for the case where R_HOME contains spaces.
hornik authored
91 @WANT_R_FRAMEWORK_TRUE@ $(top_builddir)/etc/Makeconf > "$(rhome)/etc/Makeconf")
c614025 new fixes for the R framework installation: patches to the SHLIB scri…
iacus authored
92 @WANT_R_FRAMEWORK_TRUE@ @(sed 's/Versions\/$(VERSION)\/Resources/Resources/' \
93 @WANT_R_FRAMEWORK_TRUE@ $(R_FRAMEWORK_DIR)/Resources/bin/R > \
94 @WANT_R_FRAMEWORK_TRUE@ $(R_FRAMEWORK_DIR)/Resources/bin/RR)
95 @WANT_R_FRAMEWORK_TRUE@ @(mv $(R_FRAMEWORK_DIR)/Resources/bin/RR $(R_FRAMEWORK_DIR)/Resources/bin/R)
96 @WANT_R_FRAMEWORK_TRUE@ @(chmod 755 $(R_FRAMEWORK_DIR)/Resources/bin/R)
6eee7cb branch update
ripley authored
97 @WANT_R_FRAMEWORK_TRUE@ @(cp $(R_FRAMEWORK_DIR)/Resources/bin/R $(R_FRAMEWORK_DIR)/Resources/R)
c614025 new fixes for the R framework installation: patches to the SHLIB scri…
iacus authored
98
0f0950c move some files from SVN sources to `make dist'.
ripley authored
99 svnonly:
5e24ffc update DISTFILES, tweak install from make dist tarball
ripley authored
100 @if test ! -f "$(srcdir)/FAQ" || test -f non-tarball ; then \
0f0950c move some files from SVN sources to `make dist'.
ripley authored
101 cd doc/manual && $(MAKE) front-matter ; \
102 touch non-tarball ; \
103 else \
104 if test "$(BUILDDIR_IS_SRCDIR)" = no ; then \
105 for f in $(NON_SVN_INSTFILES); do \
5e24ffc update DISTFILES, tweak install from make dist tarball
ripley authored
106 $(INSTALL_DATA) $(srcdir)/$${f} $(top_builddir); \
0f0950c move some files from SVN sources to `make dist'.
ripley authored
107 done \
108 fi \
109 fi
c614025 new fixes for the R framework installation: patches to the SHLIB scri…
iacus authored
110
afe5b25 Improve installdirs target.
hornik authored
111 installdirs:
9a8aad7 More 'improvements' for the case where R_HOME contains spaces.
hornik authored
112 @$(MKINSTALLDIRS) "$(rhome)"
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
113 install-strip:
114 $(MAKE) INSTALL_PROGRAM="${INSTALL_PROGRAM} -s" install
115 uninstall:
89cc593 Make targets for build and (un)install more recursive.
hornik authored
116 @(for d in $(SUBDIRS); do rsd="$${d} $${rsd}"; done; \
117 for d in $${rsd}; do (cd $${d} && $(MAKE) $@); done)
2f6ef11 Improve testing whether srcdir equals builddir.
hornik authored
118 @for f in $(INSTFILES); do \
9a8aad7 More 'improvements' for the case where R_HOME contains spaces.
hornik authored
119 rm -f "$(rhome)/$${f}"; \
a16651d New targets Makefile and uninstall.
hornik authored
120 done
9a8aad7 More 'improvements' for the case where R_HOME contains spaces.
hornik authored
121 @rm -rf "$(Rexecbindir)" "$(Rexeclibdir)"
122 @rm -rf "$(rhome)/demos"
123 @rm -rf "$(rhome)/gnome"
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
124
1dbd666 added install-aqua target to the install procedure
iacus authored
125
1f7ea5b Rewrite.
hornik authored
126 mostlyclean: clean
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
127 clean:
4b393dc Reverse order of SUBDIRS for clean/disclean.
hornik authored
128 @(for d in $(SUBDIRS); do rsd="$${d} $${rsd}"; done; \
129 for d in $${rsd}; do (cd $${d} && $(MAKE) $@); done)
a437d9e Improve testing whether srcdir equals builddir.
hornik authored
130 @if test "$(BUILDDIR_IS_SRCDIR)" = no ; then \
0f0950c move some files from SVN sources to `make dist'.
ripley authored
131 rm -f $(INSTFILES) $(NON_SVN_INSTFILES) ; \
6f16fac branch update
pd authored
132 fi
1f7ea5b Rewrite.
hornik authored
133 distclean: clean
4b393dc Reverse order of SUBDIRS for clean/disclean.
hornik authored
134 @(for d in $(SUBDIRS); do rsd="$${d} $${rsd}"; done; \
135 for d in $${rsd}; do (cd $${d} && $(MAKE) $@); done)
7a48a55 distclean should remove the lib directory
ripley authored
136 -@rm -rf bin include lib library modules gnome
0f0950c move some files from SVN sources to `make dist'.
ripley authored
137 @if test -f non-tarball ; then \
138 rm -f $(NON_SVN_INSTFILES) non-tarball ; \
139 fi
f7688be Misc Makefile cleanups: FIXME, NOTE, quoting, and so on.
hornik authored
140 -@rm -f Makeconf Makefile Makefile.bak Makefrag.* \
3548e85 build ac{include,local} in the build tree as needed, don't ship
ripley authored
141 config.cache config.log config.status libtool \
0f0950c move some files from SVN sources to `make dist'.
ripley authored
142 $(ACLOCAL_M4) acinclude.m4 $(distdir).tar.gz
1f7ea5b Rewrite.
hornik authored
143 maintainer-clean: distclean
86f8f19 Install only front-end script to $(bindir).
hornik authored
144 @echo "This command is intended for maintainers to use; it"
92e8dab Add warning about effects of maintainer-clean.
hornik authored
145 @echo "deletes files that may need special rules to rebuild"
f7688be Misc Makefile cleanups: FIXME, NOTE, quoting, and so on.
hornik authored
146 @(for d in $(SUBDIRS); do rsd="$${d} $${rsd}"; done; \
147 for d in $${rsd}; do (cd $${d} && $(MAKE) $@); done)
8cbcb25 Remove 'autom4te.cache' in 'make maintainer-clean'.
hornik authored
148 -@(cd $(srcdir) && rm -rf autom4te.cache)
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
149
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
150 dist: dist-unix
151 dist-unix: distdir
152 -chmod -R a+r $(distdir)
96d3913 prevent wrong permissions from make dist
pd authored
153 -chmod -R go-w $(distdir)
25a5dc6 name dist tarball more sensibly
ripley authored
154 distname=`$(srcdir)/tools/GETDISTNAME`; \
155 GZIP=$(GZIP) $(TAR) czf $${distname}.tar.gz $(distdir)
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
156 rm -rf $(distdir)
157 dist-win:
f0cc021 distribute grid vignettes in the tarballs and don't make by default
ripley authored
158 distdir: $(DISTFILES) vignettes
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
159 @rm -rf $(distdir)
160 @mkdir $(distdir)
161 @-chmod 755 $(distdir)
162 @for f in $(DISTFILES); do \
163 test -f $(distdir)/$${f} \
d061198 Replace leading spaces by tabs.
hornik authored
164 || ln $(srcdir)/$${f} $(distdir)/$${f} 2>/dev/null \
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
165 || cp -p $(srcdir)/$${f} $(distdir)/$${f}; \
166 done
0f0950c move some files from SVN sources to `make dist'.
ripley authored
167 @for f in $(NON_SVN_INSTFILES); do \
168 cp -p $${f} $(distdir)/$${f}; \
169 done
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
170 @for d in $(SUBDIRS); do \
171 test -d $(distdir)/$${d} \
172 || mkdir $(distdir)/$${d} \
173 || exit 1; \
174 chmod 755 $(distdir)/$${d}; \
175 (cd $${d} && $(MAKE) distdir) \
176 || exit 1; \
d061198 Replace leading spaces by tabs.
hornik authored
177 done
189bc25 Use Make variable 'SUBDIRS_WITH_NO_BUILD' to indicate subdirs where u…
hornik authored
178 @for d in $(SUBDIRS_WITH_NO_BUILD); do \
b9368b1 Teach make dist to exclude .svn subdirs.
hornik authored
179 ((cd $(srcdir); $(TAR) -c -f - $(DISTDIR_TAR_EXCLUDE) $${d}) \
189bc25 Use Make variable 'SUBDIRS_WITH_NO_BUILD' to indicate subdirs where u…
hornik authored
180 | (cd $(distdir); $(TAR) -x -f -)) \
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
181 || exit 1; \
182 done
98e20d7 ship the grid vignette index too
ripley authored
183 @cp library/grid/doc/*.pdf library/grid/doc/index.html \
184 $(distdir)/src/library/grid/inst/doc
0f0950c move some files from SVN sources to `make dist'.
ripley authored
185 @(cd $(distdir); tools/link-recommended)
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
186
bbbd710 Improve/simplify targets for checking.
hornik authored
187 dvi info pdf:
a16651d New targets Makefile and uninstall.
hornik authored
188 -@(cd doc && $(MAKE) $@)
bbbd710 Improve/simplify targets for checking.
hornik authored
189 install-dvi install-info install-pdf:
10da9f2 branch update
pd authored
190 -@(cd doc/manual && $(MAKE) $@)
bbbd710 Improve/simplify targets for checking.
hornik authored
191 uninstall-dvi uninstall-info uninstall-pdf:
10da9f2 branch update
pd authored
192 -@(cd doc/manual && $(MAKE) $@)
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
193
ecc3b53 new test targets
ripley authored
194 check check-devel check-all:
ba6787e branch update
pd authored
195 @(cd tests && $(MAKE) $@)
bbbd710 Improve/simplify targets for checking.
hornik authored
196
17300d7 Makefile support for bundling recommended packages
pd authored
197 reset-recommended:
93d29fc make fullcheck
pd authored
198 @(cd src/library/Recommended && $(MAKE) clean)
60ee3fa changes needed for the new RAqua and Rframework
iacus authored
199
0ee73c6 Set installation paths when building as a framework.
hornik authored
200 install-R-framework:
f1b3bb4 Try simplifying/standardizing installing R as a framework.
hornik authored
201 @(cd "$(R_FRAMEWORK_DIR)/Versions/$(VERSION)" && \
d2e27ea in darwin specific chunks: changed ln -h with ln -n for compatibility
iacus authored
202 ln -f -s -n Resources/include Headers && \
a2092d0 fixed r-framework installation issue as now libR.dylib is in R_HOME/l…
iacus authored
203 ln -f -s -n Resources/lib/libR.dylib R && \
d6b3da6 changes specific to R-framework install
iacus authored
204 test -d "Resources/bin/Frameworks" || mkdir -p "Resources/bin/Frameworks" && \
205 cd Resources/bin/exec && \
206 ln -f -s -n ../Frameworks Frameworks)
f1b3bb4 Try simplifying/standardizing installing R as a framework.
hornik authored
207 @(cd "$(R_FRAMEWORK_DIR)/Versions" && \
d2e27ea in darwin specific chunks: changed ln -h with ln -n for compatibility
iacus authored
208 ln -f -s -n $(VERSION) Current)
f1b3bb4 Try simplifying/standardizing installing R as a framework.
hornik authored
209 @(cd "$(R_FRAMEWORK_DIR)" && \
87de142 r-framework installation changed to copy src/include in PrivateHeaders
iacus authored
210 ln -f -s -n Versions/Current/PrivateHeaders PrivateHeaders&& \
d2e27ea in darwin specific chunks: changed ln -h with ln -n for compatibility
iacus authored
211 ln -f -s -n Versions/Current/Headers Headers&& \
212 ln -f -s -n Versions/Current/R R && \
213 ln -f -s -n Versions/Current/Resources Resources)
0f0ae24 install-R-framework looks for libR.dylib in the wrong place.
tlumley authored
214 @(cd "$(R_FRAMEWORK_DIR)/Resources/lib" && \
a2092d0 fixed r-framework installation issue as now libR.dylib is in R_HOME/l…
iacus authored
215 install_name_tool -id "$(R_FRAMEWORK_DIR)/Versions/$(VERSION)/Resources/lib/libR.dylib" ../lib/libR.dylib)
87de142 r-framework installation changed to copy src/include in PrivateHeaders
iacus authored
216 @(cp -R $(srcdir)/src/include $(R_FRAMEWORK_DIR)/Versions/Current/PrivateHeaders)
bde73fe R.framework install: fixed paths in dlls at install time
iacus authored
217 @(install_name_tool -change libR.dylib "$(R_FRAMEWORK_DIR)/Versions/$(VERSION)/Resources/lib/libR.dylib" \
218 $(R_FRAMEWORK_DIR)/Resources/bin/exec/R)
219 @(find "$(R_FRAMEWORK_DIR)/Resources/" -name '*.so' -exec install_name_tool \
220 -change libR.dylib "$(R_FRAMEWORK_DIR)/Versions/$(VERSION)/Resources/lib/libR.dylib" \{\} \;)
60ee3fa changes needed for the new RAqua and Rframework
iacus authored
221
660b7fd modified Rframework target
iacus authored
222 TAGS:
Something went wrong with that request. Please try again.