Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 219 lines (194 sloc) 7.48 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)
3bacd61 branch update
pd authored
13 INSTFILES = AUTHORS COPYING COPYING.LIB COPYRIGHTS FAQ NEWS RESOURCES THANKS
c7b5dc4 branch update - not bugfree
pd authored
14 DISTFILES = $(INSTFILES) \
489fab0 Added front-matter files required by GNU strictness.
hornik authored
15 BUGS ChangeLog INSTALL ONEWS README VERSION Y2K \
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
16 Makeconf.in Makefile.in \
3f2fe45 Rename 'configure.in' to 'configure.ac'.
hornik authored
17 acinclude.m4 aclocal.m4 \
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
23 GZIP = --best
24
3ca2d9e Further changes related to recommended packages.
hornik authored
25 all: Makefile Makeconf R docs @USE_RECOMMENDED_PACKAGES_TRUE@ stamp-recommended
1f7ea5b Rewrite.
hornik authored
26
ba6787e branch update
pd authored
27 Makefile: $(srcdir)/Makefile.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 Makeconf: $(srcdir)/Makeconf.in $(top_builddir)/config.status
3f2fe45 Rename 'configure.in' to 'configure.ac'.
hornik authored
30 @cd $(top_builddir) && $(SHELL) ./config.status $@
b2a3d9a Misc fixes and cleanups.
hornik authored
31
4d29d3d Split `acinclude.m4' into new subdir `m4'.
hornik authored
32 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
33 ACLOCAL_DEPENDENCIES = \
3f2fe45 Rename 'configure.in' to 'configure.ac'.
hornik authored
34 configure.ac \
06e1709 Create `aclocal.m4' from `m4/*' via `acconfig.h'.
hornik authored
35 acinclude.m4
36 ACINCLUDE_DEPENDENCIES = \
4d29d3d Split `acinclude.m4' into new subdir `m4'.
hornik authored
37 m4/R.m4 \
38 m4/gnome-gnorba-check.m4 \
39 m4/gnome-orbit-check.m4 \
40 m4/gnome.m4 \
41 m4/libglade.m4 \
42 m4/libtool.m4
530510d configure needs a dependency on VERSION.
hornik authored
43 CONFIGURE_DEPENDENCIES = $(srcdir)/VERSION
b2a3d9a Misc fixes and cleanups.
hornik authored
44 config.status: $(srcdir)/configure
e6f219c Improve automatic remaking.
hornik authored
45 @$(SHELL) ./config.status --recheck
530510d configure needs a dependency on VERSION.
hornik authored
46 $(srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(srcdir)/configure.ac $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
2e5c579 Use autoheader/aclocal for maintaining the configure environment.
hornik authored
47 @cd $(srcdir) && $(AUTOCONF)
3f2fe45 Rename 'configure.in' to 'configure.ac'.
hornik authored
48 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(srcdir)/configure.ac $(ACLOCAL_DEPENDENCIES)
06e1709 Create `aclocal.m4' from `m4/*' via `acconfig.h'.
hornik authored
49 @cd $(srcdir) && $(ACLOCAL)
50 $(srcdir)/acinclude.m4: @MAINTAINER_MODE_TRUE@ $(ACINCLUDE_DEPENDENCIES)
51 @cd $(srcdir) && cat $(ACINCLUDE_DEPENDENCIES) > $@
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
52
e1acdaf Start support for libtool and R shared library.
hornik authored
53 LIBTOOL_DEPS = @LIBTOOL_DEPS@
54 libtool: $(LIBTOOL_DEPS)
55 $(SHELL) ./config.status --recheck
56
640f330 Build HTML versions of texinfo manuals.
hornik authored
57 R: Makefile
a437d9e Improve testing whether srcdir equals builddir.
hornik authored
58 @if test "$(BUILDDIR_IS_SRCDIR)" = no ; then \
6f16fac branch update
pd authored
59 for f in $(INSTFILES); do \
60 $(INSTALL_DATA) $(srcdir)/$${f} $(top_builddir); \
61 done; \
62 fi
89cc593 Make targets for build and (un)install more recursive.
hornik authored
63 @for d in $(SUBDIRS); do \
aa7eb80 branch update
pd authored
64 (cd $${d} && $(MAKE) R) || exit 1; \
0aaec01 Add demos in install and clean.
hornik authored
65 done
8cbcb25 Remove 'autom4te.cache' in 'make maintainer-clean'.
hornik authored
66 @test -f src/library/stamp-docs || \
67 echo "you should 'make docs' now ..."
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
68
1c06edb branch update
ripley authored
69 docs: R FORCE
640f330 Build HTML versions of texinfo manuals.
hornik authored
70 -@(cd doc && $(MAKE) $@)
71 -@(cd src/library && $(MAKE) $@)
72 help html latex examples: FORCE
a16651d New targets Makefile and uninstall.
hornik authored
73 -@(cd src/library && $(MAKE) $@)
1f7ea5b Rewrite.
hornik authored
74 FORCE:
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
75
49dde09 updated mechanism re. recommended packages
pd authored
76 stamp-recommended: R docs
368bb7f Improve target 'stamp-recommended'.
hornik authored
77 @(cd src/library/Recommended && $(MAKE))
3ca2d9e Further changes related to recommended packages.
hornik authored
78
badb0d1 Do not rebuild before installing.
hornik authored
79 install: installdirs
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 \
84 $(INSTALL_DATA) $(srcdir)/$${f} $(rhome); \
85 done
a69edad fixed small problems with symlink in the R.framework
iacus authored
86 @WANT_R_FRAMEWORK_TRUE@ $(MAKE) install-R-framework
87 @WANT_R_FRAMEWORK_TRUE@ @(sed 's/^LIBR =.*/LIBR = -framework R/' \
c614025 new fixes for the R framework installation: patches to the SHLIB scri…
iacus authored
88 @WANT_R_FRAMEWORK_TRUE@ $(top_builddir)/etc/Makeconf > $(rhome)/etc/Makeconf)
89 @WANT_R_FRAMEWORK_TRUE@ @(sed 's/Versions\/$(VERSION)\/Resources/Resources/' \
90 @WANT_R_FRAMEWORK_TRUE@ $(R_FRAMEWORK_DIR)/Resources/bin/R > \
91 @WANT_R_FRAMEWORK_TRUE@ $(R_FRAMEWORK_DIR)/Resources/bin/RR)
92 @WANT_R_FRAMEWORK_TRUE@ @(mv $(R_FRAMEWORK_DIR)/Resources/bin/RR $(R_FRAMEWORK_DIR)/Resources/bin/R)
93 @WANT_R_FRAMEWORK_TRUE@ @(chmod 755 $(R_FRAMEWORK_DIR)/Resources/bin/R)
94 @WANT_R_FRAMEWORK_TRUE@ @(sed 's/-L$$[{]R\_HOME[}]\/bin -lR/-framework R/' \
95 @WANT_R_FRAMEWORK_TRUE@ $(R_FRAMEWORK_DIR)/Resources/bin/SHLIB > \
96 @WANT_R_FRAMEWORK_TRUE@ $(R_FRAMEWORK_DIR)/Resources/bin/SSHLIB)
97 @WANT_R_FRAMEWORK_TRUE@ @(mv $(R_FRAMEWORK_DIR)/Resources/bin/SSHLIB $(R_FRAMEWORK_DIR)/Resources/bin/SHLIB)
98 @WANT_R_FRAMEWORK_TRUE@ @(chmod 755 $(R_FRAMEWORK_DIR)/Resources/bin/SHLIB)
99
100
afe5b25 Improve installdirs target.
hornik authored
101 installdirs:
89cc593 Make targets for build and (un)install more recursive.
hornik authored
102 @$(MKINSTALLDIRS) $(rhome)
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
103 install-strip:
104 $(MAKE) INSTALL_PROGRAM="${INSTALL_PROGRAM} -s" install
105 uninstall:
89cc593 Make targets for build and (un)install more recursive.
hornik authored
106 @(for d in $(SUBDIRS); do rsd="$${d} $${rsd}"; done; \
107 for d in $${rsd}; do (cd $${d} && $(MAKE) $@); done)
2f6ef11 Improve testing whether srcdir equals builddir.
hornik authored
108 @for f in $(INSTFILES); do \
aa7eb80 branch update
pd authored
109 rm -f $(rhome)/$${f}; \
a16651d New targets Makefile and uninstall.
hornik authored
110 done
89cc593 Make targets for build and (un)install more recursive.
hornik authored
111 @rm -rf $(Rexecbindir)
5cd99bc Introduce package-specific demos.
hornik authored
112 @rm -rf $(rhome)/demos
89cc593 Make targets for build and (un)install more recursive.
hornik authored
113 @rm -rf $(rhome)/gnome
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
114
1dbd666 added install-aqua target to the install procedure
iacus authored
115
1f7ea5b Rewrite.
hornik authored
116 mostlyclean: clean
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
117 clean:
4b393dc Reverse order of SUBDIRS for clean/disclean.
hornik authored
118 @(for d in $(SUBDIRS); do rsd="$${d} $${rsd}"; done; \
119 for d in $${rsd}; do (cd $${d} && $(MAKE) $@); done)
a437d9e Improve testing whether srcdir equals builddir.
hornik authored
120 @if test "$(BUILDDIR_IS_SRCDIR)" = no ; then \
2f6ef11 Improve testing whether srcdir equals builddir.
hornik authored
121 rm -f $(INSTFILES); \
6f16fac branch update
pd authored
122 fi
1f7ea5b Rewrite.
hornik authored
123 distclean: clean
4b393dc Reverse order of SUBDIRS for clean/disclean.
hornik authored
124 @(for d in $(SUBDIRS); do rsd="$${d} $${rsd}"; done; \
125 for d in $${rsd}; do (cd $${d} && $(MAKE) $@); done)
f7688be Misc Makefile cleanups: FIXME, NOTE, quoting, and so on.
hornik authored
126 -@rm -rf bin include library modules gnome
127 -@rm -f Makeconf Makefile Makefile.bak Makefrag.* \
e1acdaf Start support for libtool and R shared library.
hornik authored
128 config.cache config.log config.status libtool
1f7ea5b Rewrite.
hornik authored
129 maintainer-clean: distclean
86f8f19 Install only front-end script to $(bindir).
hornik authored
130 @echo "This command is intended for maintainers to use; it"
92e8dab Add warning about effects of maintainer-clean.
hornik authored
131 @echo "deletes files that may need special rules to rebuild"
f7688be Misc Makefile cleanups: FIXME, NOTE, quoting, and so on.
hornik authored
132 @(for d in $(SUBDIRS); do rsd="$${d} $${rsd}"; done; \
133 for d in $${rsd}; do (cd $${d} && $(MAKE) $@); done)
8cbcb25 Remove 'autom4te.cache' in 'make maintainer-clean'.
hornik authored
134 -@(cd $(srcdir) && rm -rf autom4te.cache)
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
135
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
136 dist: dist-unix
137 dist-unix: distdir
138 -chmod -R a+r $(distdir)
96d3913 prevent wrong permissions from make dist
pd authored
139 -chmod -R go-w $(distdir)
49dde09 updated mechanism re. recommended packages
pd authored
140 GZIP=$(GZIP) $(TAR) czf $(distdir).tar.gz $(distdir)
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
141 rm -rf $(distdir)
142 dist-win:
143 distdir: $(DISTFILES)
144 @rm -rf $(distdir)
145 @mkdir $(distdir)
146 @-chmod 755 $(distdir)
147 @for f in $(DISTFILES); do \
148 test -f $(distdir)/$${f} \
d061198 Replace leading spaces by tabs.
hornik authored
149 || ln $(srcdir)/$${f} $(distdir)/$${f} 2>/dev/null \
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
150 || cp -p $(srcdir)/$${f} $(distdir)/$${f}; \
151 done
152 @for d in $(SUBDIRS); do \
153 test -d $(distdir)/$${d} \
154 || mkdir $(distdir)/$${d} \
155 || exit 1; \
156 chmod 755 $(distdir)/$${d}; \
157 (cd $${d} && $(MAKE) distdir) \
158 || exit 1; \
d061198 Replace leading spaces by tabs.
hornik authored
159 done
189bc25 Use Make variable 'SUBDIRS_WITH_NO_BUILD' to indicate subdirs where u…
hornik authored
160 @for d in $(SUBDIRS_WITH_NO_BUILD); do \
5e4482c Improve distdir.
hornik authored
161 ((cd $(srcdir); $(TAR) -c -f - --exclude=CVS $${d}) \
189bc25 Use Make variable 'SUBDIRS_WITH_NO_BUILD' to indicate subdirs where u…
hornik authored
162 | (cd $(distdir); $(TAR) -x -f -)) \
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
163 || exit 1; \
164 done
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
165
bbbd710 Improve/simplify targets for checking.
hornik authored
166 dvi info pdf:
a16651d New targets Makefile and uninstall.
hornik authored
167 -@(cd doc && $(MAKE) $@)
bbbd710 Improve/simplify targets for checking.
hornik authored
168 install-dvi install-info install-pdf:
10da9f2 branch update
pd authored
169 -@(cd doc/manual && $(MAKE) $@)
bbbd710 Improve/simplify targets for checking.
hornik authored
170 uninstall-dvi uninstall-info uninstall-pdf:
10da9f2 branch update
pd authored
171 -@(cd doc/manual && $(MAKE) $@)
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
172
ecc3b53 new test targets
ripley authored
173 check check-devel check-all:
ba6787e branch update
pd authored
174 @(cd tests && $(MAKE) $@)
bbbd710 Improve/simplify targets for checking.
hornik authored
175
17300d7 Makefile support for bundling recommended packages
pd authored
176 reset-recommended:
93d29fc make fullcheck
pd authored
177 @(cd src/library/Recommended && $(MAKE) clean)
60ee3fa changes needed for the new RAqua and Rframework
iacus authored
178
0ee73c6 Set installation paths when building as a framework.
hornik authored
179 install-R-framework:
9ace8b9 changed to take care of src/modules/aqua/Info.plist
iacus authored
180 @(cd $(top_builddir)/src/modules/aqua && \
f1b3bb4 Try simplifying/standardizing installing R as a framework.
hornik authored
181 cp Info.plist "$(R_FRAMEWORK_DIR)/Versions/$(VERSION)/Resources")
182 @(cd "$(R_FRAMEWORK_DIR)/Versions/$(VERSION)" && \
a69edad fixed small problems with symlink in the R.framework
iacus authored
183 ln -f -s -h Resources/include Headers && \
184 ln -f -s -h Resources/bin/libR.dylib R)
f1b3bb4 Try simplifying/standardizing installing R as a framework.
hornik authored
185 @(cd "$(R_FRAMEWORK_DIR)/Versions" && \
a69edad fixed small problems with symlink in the R.framework
iacus authored
186 ln -f -s -h $(VERSION) Current)
f1b3bb4 Try simplifying/standardizing installing R as a framework.
hornik authored
187 @(cd "$(R_FRAMEWORK_DIR)" && \
a69edad fixed small problems with symlink in the R.framework
iacus authored
188 ln -f -s -h Versions/Current/Headers Headers&& \
189 ln -f -s -h Versions/Current/R R && \
190 ln -f -s -h Versions/Current/Resources Resources)
60ee3fa changes needed for the new RAqua and Rframework
iacus authored
191 @(cd "$(srcdir)/src/modules/aqua/Contents/Resources" && \
f1b3bb4 Try simplifying/standardizing installing R as a framework.
hornik authored
192 cp -R * "$(R_FRAMEWORK_DIR)/Resources/bin")
193 @(cd "$(R_FRAMEWORK_DIR)/Resources/bin" && \
84914d7 Add configure support for building an R framework (Darwin).
hornik authored
194 sed 's/^args=/args=--gui=aqua/' < R > RAqua && \
3e1d1cc modified install-R-framework target to set the correct install_name f…
iacus authored
195 chmod 755 RAqua && \
f1b3bb4 Try simplifying/standardizing installing R as a framework.
hornik authored
196 install_name_tool -id "$(R_FRAMEWORK_DIR)/Versions/$(VERSION)/Resources/bin/libR.dylib" libR.dylib)
c614025 new fixes for the R framework installation: patches to the SHLIB scri…
iacus authored
197 @(sed 's/Versions\/$(VERSION)\/Resources/Resources/' $(R_FRAMEWORK_DIR)/Resources/bin/RAqua > \
198 $(R_FRAMEWORK_DIR)/Resources/bin/RRAqua)
199 @(mv $(R_FRAMEWORK_DIR)/Resources/bin/RRAqua $(R_FRAMEWORK_DIR)/Resources/bin/RAqua)
200 @(chmod 755 $(R_FRAMEWORK_DIR)/Resources/bin/RAqua)
201
60ee3fa changes needed for the new RAqua and Rframework
iacus authored
202
203 install-aqua:
204 @(rm -rf /Applications/R.app)
205 @(mkdir -p /Applications/R.app/Contents/Resources)
206 @(cd "$(srcdir)/src/modules/aqua/Contents" && \
84914d7 Add configure support for building an R framework (Darwin).
hornik authored
207 cp PkgInfo /Applications/R.app/Contents)
b9b9d46 we now have a version Info.plist file for the R.app
iacus authored
208 @(cd "$(top_builddir)/src/modules/aqua/Contents" && \
84914d7 Add configure support for building an R framework (Darwin).
hornik authored
209 cp Info.plist /Applications/R.app/Contents)
60ee3fa changes needed for the new RAqua and Rframework
iacus authored
210 @(cd "$(srcdir)/src/modules/aqua/Contents/Resources" && \
84914d7 Add configure support for building an R framework (Darwin).
hornik authored
211 cp -R * /Applications/R.app/Contents/Resources)
60ee3fa changes needed for the new RAqua and Rframework
iacus authored
212 @(mkdir -p /Applications/R.app/Contents/MacOS)
f1b3bb4 Try simplifying/standardizing installing R as a framework.
hornik authored
213 @test -f "$(R_FRAMEWORK_DIR)/Resources/bin/RAqua" \
0ee73c6 Set installation paths when building as a framework.
hornik authored
214 || (echo "please, make install-R-framework first" && exit 1)
60ee3fa changes needed for the new RAqua and Rframework
iacus authored
215 @(cd /Applications/R.app/Contents/MacOS && \
a69edad fixed small problems with symlink in the R.framework
iacus authored
216 ln -f -h "$(R_FRAMEWORK_DIR)/Resources/bin/RAqua" R && \
84914d7 Add configure support for building an R framework (Darwin).
hornik authored
217 chmod 755 R)
660b7fd modified Rframework target
iacus authored
218 TAGS:
Something went wrong with that request. Please try again.