Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 243 lines (216 sloc) 7.927 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)
39b8f5b make use of HTML version of NEWS
ripley authored
13 INSTFILES = COPYING
5d9b5df build and install R_HOME/NEWS.pdf
ripley authored
14 ## plus NEWS and NEWS.pdf, but need to wait until they are generated
3e5a783 start moving top-level docs to doc/ for easier split installations
ripley authored
15 NON_SVN_INSTFILES = SVN-REVISION
c7b5dc4 branch update - not bugfree
pd authored
16 DISTFILES = $(INSTFILES) \
f9e88be remove Y2K
ripley authored
17 ChangeLog INSTALL ONEWS OONEWS README VERSION \
fc709ca separate framework-specific stuff to a separate makefile
ripley authored
18 Makeconf.in Makefile.in Makefile.fw \
76a7f91 remove 'date-stamp' from DISTFILES
maechler authored
19 config.site configure configure.ac
a3eef76 improve NLS, especially if --disable-nls
ripley authored
20 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
21 SUBDIRS_WITH_NO_BUILD = @USE_NLS_FALSE@ po
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
22
f59a967 port various updates from trunk
ripley authored
23 all: Makefile Makeconf R docs recommended svn-vignettes
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 \
5d81ae7 support of own bigendian test (from autoconf 2.61)
ripley authored
34 m4/bigendian.m4 \
37397fc add cairo-based X11, jpeg and png devices (not yet the default
ripley authored
35 m4/cairo.m4 \
d7c77fd more cleaning up of FLIBS
ripley authored
36 m4/clibs.m4 \
faf7cb1 branch update
ripley authored
37 m4/codeset.m4 \
f5eef21 add gettext-lib.m4, as not always already installed
ripley authored
38 m4/gettext.m4 m4/gettext-lib.m4 \
6fd3006 Add Java support to configure (append java library path to R_LD_LIBRA…
urbaneks authored
39 m4/java.m4 \
d70d2c2 update to libtool 2.2
ripley authored
40 m4/libtool.m4 m4/ltoptions.m4 m4/ltversion.m4 m4/ltsugar.m4 m4/lt~obsolete.m4
530510d configure needs a dependency on VERSION.
hornik authored
41 CONFIGURE_DEPENDENCIES = $(srcdir)/VERSION
b2a3d9a Misc fixes and cleanups.
hornik authored
42 config.status: $(srcdir)/configure
e6f219c Improve automatic remaking.
hornik authored
43 @$(SHELL) ./config.status --recheck
530510d configure needs a dependency on VERSION.
hornik authored
44 $(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
45 @BD=`pwd`; cd $(srcdir) && $(AUTOCONF) -B $${BD}
46 $(ACLOCAL_M4): $(srcdir)/configure.ac acinclude.m4
47 @BD=`pwd`; cd $(srcdir) && $(ACLOCAL) --output=$${BD}/$@ -I $${BD}
f8d4977 lost dependencies
ripley authored
48 acinclude.m4: $(srcdir)/configure.ac $(ACINCLUDE_DEPENDENCIES)
3548e85 build ac{include,local} in the build tree as needed, don't ship
ripley authored
49 @(cd $(srcdir) && cat $(ACINCLUDE_DEPENDENCIES)) > $@
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
50
e1acdaf Start support for libtool and R shared library.
hornik authored
51 LIBTOOL_DEPS = @LIBTOOL_DEPS@
52 libtool: $(LIBTOOL_DEPS)
53 $(SHELL) ./config.status --recheck
54
0f0950c move some files from SVN sources to `make dist'.
ripley authored
55 R: Makefile svnonly
a437d9e Improve testing whether srcdir equals builddir.
hornik authored
56 @if test "$(BUILDDIR_IS_SRCDIR)" = no ; then \
6f16fac branch update
pd authored
57 for f in $(INSTFILES); do \
58 $(INSTALL_DATA) $(srcdir)/$${f} $(top_builddir); \
59 done; \
60 fi
89cc593 Make targets for build and (un)install more recursive.
hornik authored
61 @for d in $(SUBDIRS); do \
aa7eb80 branch update
pd authored
62 (cd $${d} && $(MAKE) R) || exit 1; \
0aaec01 Add demos in install and clean.
hornik authored
63 done
8cbcb25 Remove 'autom4te.cache' in 'make maintainer-clean'.
hornik authored
64 @test -f src/library/stamp-docs || \
86e6463 more use of $(ECHO)
ripley authored
65 $(ECHO) "you should 'make docs' now ..."
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
66
1c06edb branch update
ripley authored
67 docs: R FORCE
640f330 Build HTML versions of texinfo manuals.
hornik authored
68 -@(cd doc && $(MAKE) $@)
69 -@(cd src/library && $(MAKE) $@)
1f7ea5b Rewrite.
hornik authored
70 FORCE:
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
71
49dde09 updated mechanism re. recommended packages
pd authored
72 stamp-recommended: R docs
368bb7f Improve target 'stamp-recommended'.
hornik authored
73 @(cd src/library/Recommended && $(MAKE))
3ca2d9e Further changes related to recommended packages.
hornik authored
74
8fe7435 make recommended packages before vignettes (as use lattice, at least …
ripley authored
75 vignettes: stamp-recommended
1478e36 Don't catch build vignette failures.
hornik authored
76 @(cd src/library && $(MAKE) $@)
8fe7435 make recommended packages before vignettes (as use lattice, at least …
ripley authored
77
f59a967 port various updates from trunk
ripley authored
78 ## One of the grid vignettes requires lattice
79 svn-vignettes: stamp-recommended
80 -@if test -f "non-tarball"; then \
81 (cd src/library && $(MAKE) vignettes); \
82 fi
83
eeb8523 make install-strip
ripley authored
84 install install-strip: installdirs svnonly
89cc593 Make targets for build and (un)install more recursive.
hornik authored
85 @for d in $(SUBDIRS); do \
aa7eb80 branch update
pd authored
86 (cd $${d} && $(MAKE) $@) || exit 1; \
a16651d New targets Makefile and uninstall.
hornik authored
87 done
fd3265c Fix installation bug.
hornik authored
88 @for f in $(INSTFILES); do \
78bf050 add DESTDIR support
ripley authored
89 $(INSTALL_DATA) $(srcdir)/$${f} "$(DESTDIR)$(rhome)"; \
fd3265c Fix installation bug.
hornik authored
90 done
5d9b5df build and install R_HOME/NEWS.pdf
ripley authored
91 @for f in NEWS NEWS.pdf $(NON_SVN_INSTFILES); do \
78bf050 add DESTDIR support
ripley authored
92 $(INSTALL_DATA) $${f} "$(DESTDIR)$(rhome)"; \
0f0950c move some files from SVN sources to `make dist'.
ripley authored
93 done
fc709ca separate framework-specific stuff to a separate makefile
ripley authored
94 @WANT_R_FRAMEWORK_TRUE@ $(MAKE) -f $(srcdir)/Makefile.fw top_srcdir=$(top_srcdir) $@
c614025 new fixes for the R framework installation: patches to the SHLIB scri…
iacus authored
95
0f0950c move some files from SVN sources to `make dist'.
ripley authored
96 svnonly:
147bf7a repair last attempt at a fix
ripley authored
97 @if test ! -f "$(srcdir)/doc/FAQ" || test -f non-tarball ; then \
4d49f36 simplify make distclean
ripley authored
98 (cd doc/manual && $(MAKE) front-matter html-non-svn) ; \
0f0950c move some files from SVN sources to `make dist'.
ripley authored
99 touch non-tarball ; \
7c16b84 do NOT use -rHEAD on svn info
pd authored
100 (cd $(srcdir); LC_ALL=C TZ=GMT svn info || $(ECHO) "Revision: unknown") 2> /dev/null \
beaf15d try harder to get svn info
ripley authored
101 | sed -n -e '/^Revision/p' -e '/^Last Changed Date/'p \
7b29647 updates for SVN 1.4.0
ripley authored
102 | cut -d' ' -f1,2,3,4 > SVN-REVISION-tmp ; \
d2f1b3f make non-executable scripts intended to be used via $(SHELL)
ripley authored
103 $(SHELL) $(top_srcdir)/tools/move-if-change SVN-REVISION-tmp SVN-REVISION ; \
beaf15d try harder to get svn info
ripley authored
104 rm -f SVN-REVISION-tmp ; \
0f0950c move some files from SVN sources to `make dist'.
ripley authored
105 else \
106 if test "$(BUILDDIR_IS_SRCDIR)" = no ; then \
107 for f in $(NON_SVN_INSTFILES); do \
5e24ffc update DISTFILES, tweak install from make dist tarball
ripley authored
108 $(INSTALL_DATA) $(srcdir)/$${f} $(top_builddir); \
0f0950c move some files from SVN sources to `make dist'.
ripley authored
109 done \
110 fi \
111 fi
c614025 new fixes for the R framework installation: patches to the SHLIB scri…
iacus authored
112
d8c4034 add target to install libR.so
ripley authored
113 libR_la = lib/libR$(DYLIB_EXT)
114 install-libR:
115 @if test -f $(libR_la); then $(MAKE) install-libR-exists; fi
116 install-libR-exists:
78bf050 add DESTDIR support
ripley authored
117 @$(MKINSTALLDIRS) "$(DESTDIR)${libdir}"
118 @$(INSTALL_DATA) -m755 $(libR_la) "$(DESTDIR)${libdir}"
d8c4034 add target to install libR.so
ripley authored
119
afe5b25 Improve installdirs target.
hornik authored
120 installdirs:
78bf050 add DESTDIR support
ripley authored
121 @$(MKINSTALLDIRS) "$(DESTDIR)$(rhome)"
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
122 uninstall:
89cc593 Make targets for build and (un)install more recursive.
hornik authored
123 @(for d in $(SUBDIRS); do rsd="$${d} $${rsd}"; done; \
124 for d in $${rsd}; do (cd $${d} && $(MAKE) $@); done)
5d9b5df build and install R_HOME/NEWS.pdf
ripley authored
125 @for f in NEWS NEWS.pdf $(INSTFILES) $(NON_SVN_INSTFILES); do \
78bf050 add DESTDIR support
ripley authored
126 rm -f "$(DESTDIR)$(rhome)/$${f}"; \
a16651d New targets Makefile and uninstall.
hornik authored
127 done
78bf050 add DESTDIR support
ripley authored
128 @rm -rf "$(DESTDIR)$(Rexecbindir)" "$(DESTDIR)$(rhome)/lib"
129 @rmdir "$(DESTDIR)$(rhome)" 2>/dev/null \
86e6463 more use of $(ECHO)
ripley authored
130 || $(ECHO) " dir $(DESTDIR)$(rhome) not removed"
78bf050 add DESTDIR support
ripley authored
131 @rm -f "$(DESTDIR)${libdir}/libR$(DYLIB_EXT)"
1dbd666 added install-aqua target to the install procedure
iacus authored
132
1f7ea5b Rewrite.
hornik authored
133 mostlyclean: clean
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
134 clean:
4b393dc Reverse order of SUBDIRS for clean/disclean.
hornik authored
135 @(for d in $(SUBDIRS); do rsd="$${d} $${rsd}"; done; \
136 for d in $${rsd}; do (cd $${d} && $(MAKE) $@); done)
a437d9e Improve testing whether srcdir equals builddir.
hornik authored
137 @if test "$(BUILDDIR_IS_SRCDIR)" = no ; then \
120ce4a sort out some make distclean/make uninstall issues
ripley authored
138 rm -f $(INSTFILES); \
6f16fac branch update
pd authored
139 fi
1f7ea5b Rewrite.
hornik authored
140 distclean: clean
4b393dc Reverse order of SUBDIRS for clean/disclean.
hornik authored
141 @(for d in $(SUBDIRS); do rsd="$${d} $${rsd}"; done; \
142 for d in $${rsd}; do (cd $${d} && $(MAKE) $@); done)
7a48a55 distclean should remove the lib directory
ripley authored
143 -@rm -rf bin include lib library modules gnome
0f0950c move some files from SVN sources to `make dist'.
ripley authored
144 @if test -f non-tarball ; then \
5d9b5df build and install R_HOME/NEWS.pdf
ripley authored
145 rm -f $(NON_SVN_INSTFILES) NEWS NEWS.pdf non-tarball doc/FAQ doc/RESOURCES doc/html/resources.html doc/html/NEWS.html; \
4d49f36 simplify make distclean
ripley authored
146 fi
147 @if test "$(BUILDDIR_IS_SRCDIR)" = no ; then \
148 rm -f $(NON_SVN_INSTFILES); \
0f0950c move some files from SVN sources to `make dist'.
ripley authored
149 fi
811bf59 better cleanup
ripley authored
150 -@rm -rf libconftest.dSYM
f7688be Misc Makefile cleanups: FIXME, NOTE, quoting, and so on.
hornik authored
151 -@rm -f Makeconf Makefile Makefile.bak Makefrag.* \
3548e85 build ac{include,local} in the build tree as needed, don't ship
ripley authored
152 config.cache config.log config.status libtool \
0f0950c move some files from SVN sources to `make dist'.
ripley authored
153 $(ACLOCAL_M4) acinclude.m4 $(distdir).tar.gz
1f7ea5b Rewrite.
hornik authored
154 maintainer-clean: distclean
86e6463 more use of $(ECHO)
ripley authored
155 @$(ECHO) "This command is intended for maintainers to use; it"
156 @$(ECHO) "deletes files that may need special rules to rebuild"
f7688be Misc Makefile cleanups: FIXME, NOTE, quoting, and so on.
hornik authored
157 @(for d in $(SUBDIRS); do rsd="$${d} $${rsd}"; done; \
158 for d in $${rsd}; do (cd $${d} && $(MAKE) $@); done)
8cbcb25 Remove 'autom4te.cache' in 'make maintainer-clean'.
hornik authored
159 -@(cd $(srcdir) && rm -rf autom4te.cache)
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
160
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
161 dist: dist-unix
162 dist-unix: distdir
163 -chmod -R a+r $(distdir)
96d3913 prevent wrong permissions from make dist
pd authored
164 -chmod -R go-w $(distdir)
25a5dc6 name dist tarball more sensibly
ripley authored
165 distname=`$(srcdir)/tools/GETDISTNAME`; \
86e6463 more use of $(ECHO)
ripley authored
166 dirname=`$(ECHO) $${distname} | sed -e s/_.*//`; \
bfe6497 some systems think 'mv a a' is an error
ripley authored
167 if test $(distdir) != $${dirname} ; then \
168 mv $(distdir) $${dirname}; \
169 fi ; \
5f19299 improve names of dist tarballs
ripley authored
170 GZIP=$(GZIP) $(TAR) czf $${distname}.tar.gz $${dirname}; \
171 rm -rf $${dirname}
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
172 dist-win:
f7fda40 always have SVN-REVISION file
ripley authored
173 distdir: $(DISTFILES) vignettes
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
174 @rm -rf $(distdir)
175 @mkdir $(distdir)
176 @-chmod 755 $(distdir)
177 @for f in $(DISTFILES); do \
178 test -f $(distdir)/$${f} \
d061198 Replace leading spaces by tabs.
hornik authored
179 || ln $(srcdir)/$${f} $(distdir)/$${f} 2>/dev/null \
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
180 || cp -p $(srcdir)/$${f} $(distdir)/$${f}; \
181 done
5d9b5df build and install R_HOME/NEWS.pdf
ripley authored
182 @for f in NEWS NEWS.pdf $(NON_SVN_INSTFILES) ; do \
0f0950c move some files from SVN sources to `make dist'.
ripley authored
183 cp -p $${f} $(distdir)/$${f}; \
184 done
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
185 @for d in $(SUBDIRS); do \
186 test -d $(distdir)/$${d} \
187 || mkdir $(distdir)/$${d} \
188 || exit 1; \
189 chmod 755 $(distdir)/$${d}; \
190 (cd $${d} && $(MAKE) distdir) \
191 || exit 1; \
d061198 Replace leading spaces by tabs.
hornik authored
192 done
189bc25 Use Make variable 'SUBDIRS_WITH_NO_BUILD' to indicate subdirs where u…
hornik authored
193 @for d in $(SUBDIRS_WITH_NO_BUILD); do \
b9368b1 Teach make dist to exclude .svn subdirs.
hornik authored
194 ((cd $(srcdir); $(TAR) -c -f - $(DISTDIR_TAR_EXCLUDE) $${d}) \
189bc25 Use Make variable 'SUBDIRS_WITH_NO_BUILD' to indicate subdirs where u…
hornik authored
195 | (cd $(distdir); $(TAR) -x -f -)) \
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
196 || exit 1; \
197 done
1d75bad port r55136,8 from trunk
ripley authored
198 @cp library/grid/doc/*.pdf $(distdir)/src/library/grid/inst/doc
199 @cp library/utils/doc/*.pdf $(distdir)/src/library/utils/inst/doc
0f0950c move some files from SVN sources to `make dist'.
ripley authored
200 @(cd $(distdir); tools/link-recommended)
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
201
bbbd710 Improve/simplify targets for checking.
hornik authored
202 dvi info pdf:
a16651d New targets Makefile and uninstall.
hornik authored
203 -@(cd doc && $(MAKE) $@)
bbbd710 Improve/simplify targets for checking.
hornik authored
204 install-dvi install-info install-pdf:
10da9f2 branch update
pd authored
205 -@(cd doc/manual && $(MAKE) $@)
bbbd710 Improve/simplify targets for checking.
hornik authored
206 uninstall-dvi uninstall-info uninstall-pdf:
10da9f2 branch update
pd authored
207 -@(cd doc/manual && $(MAKE) $@)
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
208
0b31d29 add isstall-tests
ripley authored
209 install-tests:
210 -@(cd tests && $(MAKE) $@)
211 -@(cd src/library && $(MAKE) $@)
212
213 uninstall-tests:
214 -@(cd src/library && $(MAKE) $@)
215 -@(cd tests && $(MAKE) $@)
216
b70611a 'make check-recommended' was documented, so restore it
ripley authored
217 check check-devel check-all check-recommended:
ba6787e branch update
pd authored
218 @(cd tests && $(MAKE) $@)
bbbd710 Improve/simplify targets for checking.
hornik authored
219
17300d7 Makefile support for bundling recommended packages
pd authored
220 reset-recommended:
93d29fc make fullcheck
pd authored
221 @(cd src/library/Recommended && $(MAKE) clean)
60ee3fa changes needed for the new RAqua and Rframework
iacus authored
222
6447f45 Added compiler package as a base package.
luke authored
223 ## This is a temporary target -- we'll do a better job soon
224 bytecode: all
225 @if test ! -e $(top_builddir)/library/compiler; \
226 then $(ECHO) "install the compiler first"; exit 1; fi
227 exit
228 @for pkg in $(R_PKGS_BASE); do \
229 $(ECHO) compiling code in package \"$${pkg}\"; \
230 touch $(top_builddir)/src/library/$${pkg}/all.R; \
231 (cd $(top_builddir)/src/library/$${pkg}; \
232 R_COMPILE_PKGS=1 R_COMPILER_SUPPRESS_ALL=1 $(MAKE)) \
233 done
234 @for pkg in $(R_PKGS_RECOMMENDED); do \
235 $(ECHO) compiling code in package \"$${pkg}\"; \
236 R_COMPILE_PKGS=1 R_COMPILER_SUPPRESS_ALL=1 \
237 $(top_builddir)/bin/R CMD INSTALL \
238 -l $(top_builddir)/library \
239 $(srcdir)/src/library/Recommended/$${pkg}.tgz; \
240 done
37bda51 port 37727 and 37728 from R-2-3-patches
urbaneks authored
241
660b7fd modified Rframework target
iacus authored
242 TAGS:
Something went wrong with that request. Please try again.