-
Notifications
You must be signed in to change notification settings - Fork 315
/
Makefile.in
314 lines (283 loc) · 9.96 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
#
# ${R_HOME}/Makefile
VPATH = @srcdir@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = .
include $(top_builddir)/Makeconf
GIT = `if [ -d "$(top_builddir)/.git" ]; then echo "git"; fi`
distdir = $(PACKAGE)-$(VERSION)
INSTFILES = COPYING
NON_SVN_INSTFILES = SVN-REVISION
DISTFILES = $(INSTFILES) \
ChangeLog INSTALL README VERSION VERSION-NICK \
Makeconf.in Makefile.in Makefile.fw \
config.site configure configure.ac
SUBDIRS = m4 tools doc etc share src tests
SUBDIRS_WITH_NO_BUILD = po
all: Makefile Makeconf R docs recommended vignettes javaconf
recommended: @USE_RECOMMENDED_PACKAGES_TRUE@ stamp-recommended
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@cd $(top_builddir) && $(SHELL) ./config.status $@
Makeconf: $(srcdir)/Makeconf.in $(top_builddir)/config.status
@cd $(top_builddir) && $(SHELL) ./config.status $@
ACLOCAL_M4 = aclocal.m4
## NB: this is duplicated in m4/Makefile.in
ACINCLUDE_DEPENDENCIES = \
m4/R.m4 \
m4/bigendian.m4 \
m4/cairo.m4 \
m4/clibs.m4 \
m4/codeset.m4 \
m4/cxx.m4 \
m4/gettext.m4 m4/gettext-lib.m4 \
m4/libtool.m4 m4/ltoptions.m4 m4/ltversion.m4 m4/ltsugar.m4 m4/lt~obsolete.m4 \
m4/openmp.m4 \
m4/stat-time.m4
CONFIGURE_DEPENDENCIES = $(srcdir)/VERSION
config.status: $(srcdir)/configure
@$(SHELL) ./config.status --recheck
$(srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(srcdir)/configure.ac $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
@BD=`pwd`; cd $(srcdir) && $(AUTOCONF) -f -B $${BD}
$(ACLOCAL_M4): $(srcdir)/configure.ac acinclude.m4
@BD=`pwd`; cd $(srcdir) && $(ACLOCAL) --output=$${BD}/$@ -I $${BD}
acinclude.m4: $(srcdir)/configure.ac $(ACINCLUDE_DEPENDENCIES)
@(cd $(srcdir) && cat $(ACINCLUDE_DEPENDENCIES)) > $@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
libtool: $(LIBTOOL_DEPS)
$(SHELL) ./config.status --recheck
R: Makefile svnonly
@if test "$(BUILDDIR_IS_SRCDIR)" = no ; then \
for f in $(INSTFILES); do \
$(INSTALL_DATA) $(srcdir)/$${f} $(top_builddir); \
done; \
fi
@for d in $(SUBDIRS); do \
(cd $${d} && $(MAKE) R) || exit 1; \
done
@test -f src/library/stamp-docs || \
$(ECHO) "you should 'make docs' now ..."
docs: R FORCE
@(cd doc && $(MAKE) $@)
-@(cd src/library && $(MAKE) $@)
FORCE:
stamp-recommended: R docs
@(cd src/library/Recommended && $(MAKE))
vignettes: R
@(cd src/library && $(MAKE) $@)
## This needs packages built, hence 'R' dependence on 'javaconf'
## javareconf gets remade often.
## If configure is re-run, etc/Makeconf gets reset to initial Java state
stamp-java : etc/Makeconf etc/javaconf $(srcdir)/src/scripts/javareconf.in
@WANT_JAVA_TRUE@ @$(ECHO) "configuring Java ..."
@WANT_JAVA_TRUE@ @-bin/R CMD javareconf
@touch stamp-java
javaconf: R
@$(MAKE) stamp-java
install install-strip: installdirs svnonly
@for d in $(SUBDIRS); do \
(cd $${d} && $(MAKE) $@) || exit 1; \
done
@for f in $(INSTFILES); do \
$(INSTALL_DATA) $(srcdir)/$${f} "$(DESTDIR)$(rhome)"; \
done
@for f in $(NON_SVN_INSTFILES); do \
$(INSTALL_DATA) $${f} "$(DESTDIR)$(rhome)"; \
done
@WANT_R_FRAMEWORK_TRUE@ $(MAKE) -f $(srcdir)/Makefile.fw top_srcdir=$(top_srcdir) $@
svnonly:
@if test ! -f "$(srcdir)/doc/FAQ" || test -f non-tarball ; then \
touch non-tarball ; \
(cd $(srcdir); LC_ALL=C TZ=GMT $(GIT) svn info || cat SVNINFO || $(ECHO) "Revision: -99") 2> /dev/null \
| sed -n -e '/^Revision/p' -e '/^Last Changed Date/'p \
| cut -d' ' -f1,2,3,4 > SVN-REVISION-tmp ; \
if test "`cat SVN-REVISION-tmp`" = "Revision: -99"; then \
$(ECHO) "ERROR: not an svn checkout"; \
exit 1; \
fi; \
$(SHELL) $(top_srcdir)/tools/move-if-change SVN-REVISION-tmp SVN-REVISION ; \
rm -f SVN-REVISION-tmp ; \
(cd doc/manual && $(MAKE) front-matter html-non-svn) ; \
else \
if test "$(BUILDDIR_IS_SRCDIR)" = no ; then \
for f in $(NON_SVN_INSTFILES); do \
$(INSTALL_DATA) $(srcdir)/$${f} $(top_builddir); \
done \
fi \
fi
@WANT_R_STATIC_FALSE@libR_la = libR$(R_DYLIB_EXT)
@WANT_R_STATIC_TRUE@libR_la = libR.a
install-libR:
@if test -f lib$(R_ARCH)/$(libR_la); then $(MAKE) install-libR-exists; fi
install-libR-exists:
@$(MKINSTALLDIRS) "$(DESTDIR)${libdir}"
@$(INSTALL_DATA) -m755 lib$(R_ARCH)/$(libR_la) "$(DESTDIR)${libdir}"
uninstall-libR:
@rm -f "$(DESTDIR)${libdir}/$(libR_la)"
installdirs:
@$(MKINSTALLDIRS) "$(DESTDIR)$(rhome)"
uninstall:
@(for d in $(SUBDIRS); do rsd="$${d} $${rsd}"; done; \
for d in $${rsd}; do (cd $${d} && $(MAKE) $@); done)
@for f in $(INSTFILES) $(NON_SVN_INSTFILES); do \
rm -f "$(DESTDIR)$(rhome)/$${f}"; \
done
@rm -Rf "$(DESTDIR)$(Rexecbindir)" "$(DESTDIR)$(rhome)/lib"
@rmdir "$(DESTDIR)$(rhome)" 2>/dev/null \
|| $(ECHO) " dir $(DESTDIR)$(rhome) not removed"
@rm -f "$(DESTDIR)${libdir}/libR$(R_DYLIB_EXT)"
mostlyclean: clean
clean:
@(for d in $(SUBDIRS); do rsd="$${d} $${rsd}"; done; \
for d in $${rsd}; do (cd $${d} && $(MAKE) $@); done)
@if test "$(BUILDDIR_IS_SRCDIR)" = no ; then \
rm -f $(INSTFILES); \
fi
distclean: clean
@(for d in $(SUBDIRS); do rsd="$${d} $${rsd}"; done; \
for d in $${rsd}; do (cd $${d} && $(MAKE) $@); done)
@rm -f po/Makefile
-@rm -Rf bin include lib library modules gnome
@if test -f non-tarball ; then \
rm -f $(NON_SVN_INSTFILES) non-tarball doc/FAQ doc/RESOURCES doc/html/resources.html doc/html/NEWS.html; \
fi
@if test "$(BUILDDIR_IS_SRCDIR)" = no ; then \
rm -f $(NON_SVN_INSTFILES); \
rm -Rf $(SUBDIRS) $(SUBDIRS_WITH_NO_BUILD); \
fi
-@rm -Rf libconftest.dSYM
-@rm -f Makeconf Makefile Makefile.bak Makefrag.* \
config.cache config.log config.status libtool stamp-java \
$(ACLOCAL_M4) acinclude.m4 $(distdir).tar.gz
## left behind by the Intel compilers from configuring.
-@rm -f *.f90 *.mod
maintainer-clean: distclean
@$(ECHO) "This command is intended for maintainers to use; it"
@$(ECHO) "deletes files that may need special rules to rebuild"
@(for d in $(SUBDIRS); do rsd="$${d} $${rsd}"; done; \
for d in $${rsd}; do (cd $${d} && $(MAKE) $@); done)
-@(cd $(srcdir) && rm -Rf autom4te.cache)
## make dist should be preceded by make all
dist: dist-unix
## GNU gzip 1.8 warns that env var GZIP is obsolescent for gzip, so use as arg
dist-unix: distdir
-chmod -R a+r $(distdir)
-chmod -R go-w $(distdir)
distname=`$(srcdir)/tools/GETDISTNAME`; \
dirname=`$(ECHO) $${distname} | sed -e s/_.*//`; \
if test $(distdir) != $${dirname} ; then \
mv $(distdir) $${dirname}; \
fi ; \
rm -f $${distname}.tar.gz; \
$(TAR) cf $${distname}.tar $${dirname} && $(R_GZIPCMD) $(GZIP) $${distname}.tar; \
rm -Rf $${dirname}
dist-win:
distdir: $(DISTFILES) vignettes
@rm -Rf $(distdir)
@mkdir $(distdir)
@-chmod 755 $(distdir)
@for f in $(DISTFILES); do \
test -f $(distdir)/$${f} \
|| ln $(srcdir)/$${f} $(distdir)/$${f} 2>/dev/null \
|| cp -p $(srcdir)/$${f} $(distdir)/$${f}; \
done
@for f in $(NON_SVN_INSTFILES) ; do \
cp -p $${f} $(distdir)/$${f}; \
done
@for d in $(SUBDIRS); do \
test -d $(distdir)/$${d} \
|| mkdir $(distdir)/$${d} \
|| exit 1; \
chmod 755 $(distdir)/$${d}; \
(cd $${d} && $(MAKE) distdir) \
|| exit 1; \
done
@for d in $(SUBDIRS_WITH_NO_BUILD); do \
((cd $(srcdir); $(TAR) -c -f - $(DISTDIR_TAR_EXCLUDE) $${d}) \
| (cd $(distdir); $(TAR) -x -f -)) \
|| exit 1; \
done
@for d in grid parallel utils; do \
mkdir -p $(distdir)/src/library/$${d}/inst/doc; \
cp library/$${d}/doc/*.pdf $(distdir)/src/library/$${d}/inst/doc; \
done
@(cd $(distdir); tools/link-recommended)
distcheck: distcheck-unix
distcheck-unix: dist
distname=`$(srcdir)/tools/GETDISTNAME`; \
dirname=`$(ECHO) $${distname} | sed -e s/_.*//`; \
rm -Rf $${dirname}; \
$(R_GZIPCMD) -d -c $${distname}.tar.gz | $(TAR) -x -f -; \
chmod u+w $${dirname}; \
if test -f config.site; then \
cp config.site $${dirname}; \
fi; \
mkdir $${dirname}/_build $${dirname}/_inst; \
test -d $${dirname}/_build || exit 0; \
dc_install_base=`cd $${dirname}/_inst && pwd` \
&& save__cwd=`pwd` \
&& cd $${dirname}/_build \
&& ../configure --srcdir=.. --prefix="$$dc_install_base" \
&& $(MAKE) \
&& $(MAKE) check-all \
&& $(MAKE) install \
&& $(MAKE) uninstall \
&& $(MAKE) distuninstallcheck_dir="$$dc_install_base" \
distuninstallcheck \
&& $(MAKE) dist \
&& rm -f $${distname}.tar.gz \
&& $(MAKE) distcleancheck \
&& cd "$$save__cwd" \
|| exit 1; \
rm -Rf $${dirname}; \
$(ECHO) "$${distname}.tar.gz ready for distribution"
distcheck-win:
distuninstallcheck:
@test -n '$(distuninstallcheck_dir)' || { \
echo 'ERROR: trying to run $@ with an empty' \
'$$(distuninstallcheck_dir)' >&2; \
exit 1; \
}; \
cd '$(distuninstallcheck_dir)' || { \
$(ECHO) 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
exit 1; \
}; \
test `find . -type f -print | wc -l` -eq 0 || \
{ $(ECHO) "ERROR: files left after uninstall:" ; \
`find . -type f -print`; \
exit 1; } >&2
distcleancheck: distclean
@test `find . -type f -print | wc -l` -eq 0 || \
{ $(ECHO) "ERROR: files left in build directory after distclean:" ; \
`find . -type f -print`; \
exit 1; } >&2
## For developers: from an svn checkout expect .svn to be only in the srcdir
checkdistcomplete:
@distname=`$(srcdir)/tools/GETDISTNAME`; \
dirname=`$(ECHO) $${distname} | sed -e s/_.*//`; \
if test -d $${dirname}; then \
echo "Please remove directory $${dirname} first"; \
exit 1; \
fi; \
rm -Rf $${dirname}; \
echo "Checking $${distname}.tar.gz"; \
$(R_GZIPCMD) -d -c $${distname}.tar.gz | $(TAR) -x -f -; \
LANGUAGE=C diff -r $${dirname} $(srcdir) | grep "^Only in $(srcdir)" | grep -v "^Only in.*[.]svn"; \
rm -Rf $${dirname}
info pdf:
-@(cd doc && $(MAKE) $@)
install-info install-pdf compact-pdf:
-@(cd doc/manual && $(MAKE) $@)
uninstall-info uninstall-pdf:
-@(cd doc/manual && $(MAKE) $@)
install-tests:
-@(cd tests && $(MAKE) $@)
-@(cd src/library && $(MAKE) $@)
uninstall-tests:
-@(cd src/library && $(MAKE) $@)
-@(cd tests && $(MAKE) $@)
check check-devel check-all check-recommended:
@(cd tests && $(MAKE) $@)
reset-recommended:
@(cd src/library/Recommended && $(MAKE) clean)
TAGS: