Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 220 lines (202 sloc) 6.447 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)
489fab0 Added front-matter files required by GNU strictness.
hornik authored
13 INSTFILES = AUTHORS COPYING COPYRIGHTS FAQ MIRROR-SITES NEWS \
14 RESOURCES THANKS
c7b5dc4 branch update - not bugfree
pd authored
15 DISTFILES = $(INSTFILES) \
489fab0 Added front-matter files required by GNU strictness.
hornik authored
16 BUGS ChangeLog INSTALL ONEWS README VERSION Y2K \
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
17 Makeconf.in Makefile.in \
2e5c579 Use autoheader/aclocal for maintaining the configure environment.
hornik authored
18 acconfig.h acinclude.m4 aclocal.m4 \
19 config.site configure configure.in \
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
20 date-stamp
63f4534 new R CMD check
leisch authored
21 SUBDIRS = src afm demos doc etc share tests tools
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
22
23 GZIP = --best
24
b2a3d9a Misc fixes and cleanups.
hornik authored
25 all: Makefile Makeconf R docs
1f7ea5b Rewrite.
hornik authored
26
ba6787e branch update
pd authored
27 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
e6f219c Improve automatic remaking.
hornik authored
28 @cd $(top_builddir) \
a16651d New targets Makefile and uninstall.
hornik authored
29 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
b2a3d9a Misc fixes and cleanups.
hornik authored
30 Makeconf: $(srcdir)/Makeconf.in $(top_builddir)/config.status
e6f219c Improve automatic remaking.
hornik authored
31 @cd $(top_builddir) \
b2a3d9a Misc fixes and cleanups.
hornik authored
32 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
33
34 config.status: $(srcdir)/configure
e6f219c Improve automatic remaking.
hornik authored
35 @$(SHELL) ./config.status --recheck
757cfaf Eliminate continued comment lines.
hornik authored
36 $(srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(srcdir)/configure.in $(srcdir)/aclocal.m4
2e5c579 Use autoheader/aclocal for maintaining the configure environment.
hornik authored
37 @cd $(srcdir) && $(AUTOCONF)
757cfaf Eliminate continued comment lines.
hornik authored
38 $(srcdir)/aclocal.m4: @MAINTAINER_MODE_TRUE@ $(srcdir)/configure.in $(srcdir)/acinclude.m4
2e5c579 Use autoheader/aclocal for maintaining the configure environment.
hornik authored
39 @cd $(srcdir) && $(ACLOCAL)
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
40
e1acdaf Start support for libtool and R shared library.
hornik authored
41 LIBTOOL_DEPS = @LIBTOOL_DEPS@
42 libtool: $(LIBTOOL_DEPS)
43 $(SHELL) ./config.status --recheck
44
640f330 Build HTML versions of texinfo manuals.
hornik authored
45 R: Makefile
6f16fac branch update
pd authored
46 @if [ "$(srcdir)" != "." ]; then \
47 for f in $(INSTFILES); do \
48 $(INSTALL_DATA) $(srcdir)/$${f} $(top_builddir); \
49 done; \
50 fi
63f4534 new R CMD check
leisch authored
51 @for d in tools afm doc etc share src demos; do \
aa7eb80 branch update
pd authored
52 (cd $${d} && $(MAKE) R) || exit 1; \
0aaec01 Add demos in install and clean.
hornik authored
53 done
1f7ea5b Rewrite.
hornik authored
54 @if [ ! -f src/library/stamp-docs ]; then \
86f8f19 Install only front-end script to $(bindir).
hornik authored
55 echo "you should \`make docs' now ..."; \
1f7ea5b Rewrite.
hornik authored
56 fi
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
57
640f330 Build HTML versions of texinfo manuals.
hornik authored
58 docs: FORCE
59 -@(cd doc && $(MAKE) $@)
60 -@(cd src/library && $(MAKE) $@)
61 help html latex examples: FORCE
a16651d New targets Makefile and uninstall.
hornik authored
62 -@(cd src/library && $(MAKE) $@)
1f7ea5b Rewrite.
hornik authored
63 FORCE:
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
64
badb0d1 Do not rebuild before installing.
hornik authored
65 install: installdirs
63f4534 new R CMD check
leisch authored
66 @for d in afm demos doc etc share; do \
aa7eb80 branch update
pd authored
67 (cd $${d} && $(MAKE) $@) || exit 1; \
a16651d New targets Makefile and uninstall.
hornik authored
68 done
fd3265c Fix installation bug.
hornik authored
69 @for f in $(INSTFILES); do \
70 $(INSTALL_DATA) $(srcdir)/$${f} $(rhome); \
71 done
c3617db Improve installation.
hornik authored
72 ## FIXME:
73 ## This is really ugly, but should disappear anyway when we convert to
74 ## Automake.
86f8f19 Install only front-end script to $(bindir).
hornik authored
75 @echo "installing executables ..."
69b136f Rename R binary to `R.bin'.
hornik authored
76 @$(INSTALL_PROGRAM) bin/R.bin $(rhome)/bin
8c38a94 branch update
pd authored
77 @sed "s@R_HOME=.*@R_HOME=$(rhome)\}@" < bin/R > $(rhome)/bin/R
78 @sed "s@R_HOME=.*@R_HOME=$(rhome)\}@" < bin/R > $(bindir)/R
aafd598 Branch update + setjmp problem fixup
pd authored
79 @chmod 755 $(bindir)/R $(rhome)/bin/R
b19d7ab Improve installation.
hornik authored
80 @for f in `find bin -type f -print \
5bdac57 remove fwf2table: no longer used.
ripley authored
81 | grep -v '^bin/R$$' \
c3617db Improve installation.
hornik authored
82 | grep -v '^bin/R.bin' \
83 | grep -v '^bin/libR' \
84 | grep -v '^bin/R_'`; do \
85 $(INSTALL_SCRIPT) $${f} $(Rexecbindir); \
86 done
87 @echo "installing shlibs ..."
5eaffbc No need installing `.la' files.
hornik authored
88 ## FIXME:
89 ## Add bin/*.la when using libtool for shlibs
0986786 ls might give an error if there are no shared libraries
ripley authored
90 ## Note: if there are no shared libraries, the ls call may generate an error.
91 @-for f in `ls bin/*.$(SHLIB_EXT) 2> /dev/null`; do \
c3617db Improve installation.
hornik authored
92 $(INSTALL_PROGRAM) $${f} $(Rexeclibdir); \
1f7ea5b Rewrite.
hornik authored
93 done
5eaffbc No need installing `.la' files.
hornik authored
94 ## </FIXME>
4270560 Quiet libtool finish.
hornik authored
95 @USE_LIBTOOL_TRUE@ @$(LIBTOOL) --quiet --mode=finish $(Rexeclibdir)
5eaffbc No need installing `.la' files.
hornik authored
96 ## FIMXE:
97 ## Add gnome/*.la when using libtool for shlibs
c3617db Improve installation.
hornik authored
98 @if test -f gnome/R_gnome.$(SHLIB_EXT); then \
99 $(MKINSTALLDIRS) $(rhome)/gnome; \
bf61592 No need installing `.la' files.
hornik authored
100 for f in `ls gnome/*.$(SHLIB_EXT)`; do \
c3617db Improve installation.
hornik authored
101 $(INSTALL_PROGRAM) $${f} $(rhome)/gnome; \
102 done; \
103 fi
5eaffbc No need installing `.la' files.
hornik authored
104 ## </FIXME>
86f8f19 Install only front-end script to $(bindir).
hornik authored
105 @echo "installing headers ..."
1f7ea5b Rewrite.
hornik authored
106 @for f in include/*.h; do \
aa7eb80 branch update
pd authored
107 $(INSTALL_DATA) $${f} $(rhome)/include; \
1f7ea5b Rewrite.
hornik authored
108 done
097a571 Install header files in `R_ext', too.
hornik authored
109 @for f in include/R_ext/*.h; do \
110 $(INSTALL_DATA) $${f} $(rhome)/include/R_ext; \
111 done
c3617db Improve installation.
hornik authored
112 ## </FIXME>
4270560 Quiet libtool finish.
hornik authored
113 @echo "installing packages ..."
e71c9a3 Improve treatment of ownership in library installation.
hornik authored
114 @cp -r library $(rhome) || \
115 (cd library; \
116 $(TAR) cf - [a-z]* | (cd $(rhome)/library; $(TAR) xof -))
86f8f19 Install only front-end script to $(bindir).
hornik authored
117 @echo " building help index ..."
a16651d New targets Makefile and uninstall.
hornik authored
118 @(cd $(rhome)/library; cat */TITLE > LibIndex 2> /dev/null)
86f8f19 Install only front-end script to $(bindir).
hornik authored
119 @echo " building HTML index ..."
e328ea0 Use R CMD interface when calling build-help.
hornik authored
120 @$(rhome)/bin/R CMD build-help --rhome $(rhome) --htmllists
afe5b25 Improve installdirs target.
hornik authored
121 installdirs:
1f7ea5b Rewrite.
hornik authored
122 @$(MKINSTALLDIRS) $(bindir)
123 @$(MKINSTALLDIRS) $(rhome)/bin
124 @$(MKINSTALLDIRS) $(rhome)/include
097a571 Install header files in `R_ext', too.
hornik authored
125 @$(MKINSTALLDIRS) $(rhome)/include/R_ext
1f7ea5b Rewrite.
hornik authored
126 @$(MKINSTALLDIRS) $(rhome)/library
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
127 install-strip:
128 $(MAKE) INSTALL_PROGRAM="${INSTALL_PROGRAM} -s" install
129 uninstall:
86f8f19 Install only front-end script to $(bindir).
hornik authored
130 @echo "uninstalling library ..."
a16651d New targets Makefile and uninstall.
hornik authored
131 @(cd $(rhome)/library; \
c7b5dc4 branch update - not bugfree
pd authored
132 for p in $(R_PKGS); do rm -rf $${p}; done)
86f8f19 Install only front-end script to $(bindir).
hornik authored
133 @echo " rebuilding help index ..."
9d3546e Improve uninstall.
hornik authored
134 @(cd $(rhome)/library; \
135 cat */TITLE > LibIndex 2> /dev/null || echo "" > LibIndex)
86f8f19 Install only front-end script to $(bindir).
hornik authored
136 @echo " rebuilding HTML index ..."
e328ea0 Use R CMD interface when calling build-help.
hornik authored
137 @if test -x $(rhome)/bin/R -a -f $(rhome)/bin/build-help; then \
138 $(rhome)/bin/R CMD build-help --rhome $(rhome) --htmllists; \
9d3546e Improve uninstall.
hornik authored
139 fi
86f8f19 Install only front-end script to $(bindir).
hornik authored
140 @echo "uninstalling headers ..."
a16651d New targets Makefile and uninstall.
hornik authored
141 @rm -rf $(rhome)/include
86f8f19 Install only front-end script to $(bindir).
hornik authored
142 @echo "uninstalling executables ..."
a16651d New targets Makefile and uninstall.
hornik authored
143 @rm -rf $(rhome)/bin
d57d433 move gnome install to R_HOME/gnome
ripley authored
144 @rm -rf $(rhome)/gnome
86f8f19 Install only front-end script to $(bindir).
hornik authored
145 @rm -f $(bindir)/R
c7b5dc4 branch update - not bugfree
pd authored
146 @for f in $(INSTFILES); do \
aa7eb80 branch update
pd authored
147 rm -f $(rhome)/$${f}; \
a16651d New targets Makefile and uninstall.
hornik authored
148 done
63f4534 new R CMD check
leisch authored
149 @for d in afm demos doc etc share; do \
aa7eb80 branch update
pd authored
150 (cd $${d} && $(MAKE) $@); \
a16651d New targets Makefile and uninstall.
hornik authored
151 done
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
152
1f7ea5b Rewrite.
hornik authored
153 mostlyclean: clean
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
154 clean:
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
155 @for d in $(SUBDIRS); do \
aa7eb80 branch update
pd authored
156 (cd $${d} && $(MAKE) $@); \
1f7ea5b Rewrite.
hornik authored
157 done
6f16fac branch update
pd authored
158 @if [ "$(srcdir)" != "." ]; then \
9013739 Cleaned up the clean target - it was missing a \ at the end of a line.
bates authored
159 rm -f $(INSTFILES); \
6f16fac branch update
pd authored
160 fi
1f7ea5b Rewrite.
hornik authored
161 distclean: clean
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
162 @for d in $(SUBDIRS); do \
163 (cd $${d} && $(MAKE) $@); \
1f7ea5b Rewrite.
hornik authored
164 done
ec31927 distcelan a little better
ripley authored
165 @rm -rf bin include library gnome
8d5746d Have make clean delete Makefrag.*
hornik authored
166 @rm -f Makeconf Makefile Makefile.bak Makefrag.* \
e1acdaf Start support for libtool and R shared library.
hornik authored
167 config.cache config.log config.status libtool
1f7ea5b Rewrite.
hornik authored
168 maintainer-clean: distclean
86f8f19 Install only front-end script to $(bindir).
hornik authored
169 @echo "This command is intended for maintainers to use; it"
92e8dab Add warning about effects of maintainer-clean.
hornik authored
170 @echo "deletes files that may need special rules to rebuild"
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
171
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
172 dist: dist-unix
173 dist-unix: distdir
174 -chmod -R a+r $(distdir)
5e4482c Improve distdir.
hornik authored
175 GZIP=$(GZIP) $(TAR) chzf $(distdir).tar.gz $(distdir)
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
176 rm -rf $(distdir)
177 dist-win:
178 distdir: $(DISTFILES)
179 @rm -rf $(distdir)
180 @mkdir $(distdir)
181 @-chmod 755 $(distdir)
182 @for f in $(DISTFILES); do \
183 test -f $(distdir)/$${f} \
d061198 Replace leading spaces by tabs.
hornik authored
184 || ln $(srcdir)/$${f} $(distdir)/$${f} 2>/dev/null \
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
185 || cp -p $(srcdir)/$${f} $(distdir)/$${f}; \
186 done
187 @for d in $(SUBDIRS); do \
188 test -d $(distdir)/$${d} \
189 || mkdir $(distdir)/$${d} \
190 || exit 1; \
191 chmod 755 $(distdir)/$${d}; \
192 (cd $${d} && $(MAKE) distdir) \
193 || exit 1; \
d061198 Replace leading spaces by tabs.
hornik authored
194 done
10da9f2 branch update
pd authored
195 @for d in debian; do \
5e4482c Improve distdir.
hornik authored
196 ((cd $(srcdir); $(TAR) -c -f - --exclude=CVS $${d}) \
197 | (cd $(distdir); $(TAR) -x -f -)) \
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
198 || exit 1; \
199 done
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
200
d8e6946 Add target `pdf'.
hornik authored
201 dvi info pdf::
a16651d New targets Makefile and uninstall.
hornik authored
202 -@(cd doc && $(MAKE) $@)
10da9f2 branch update
pd authored
203 install-dvi install-info install-pdf::
204 -@(cd doc/manual && $(MAKE) $@)
205 uninstall-dvi uninstall-info uninstall-pdf::
206 -@(cd doc/manual && $(MAKE) $@)
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
207
208 TAGS:
209
af1b03b test-All, not just test-Examples
maechler authored
210 check test:: test-All
aa8b39a Renamed strict-tests to test-Specific.
hornik authored
211 test-All test-Examples test-Specific::
ba6787e branch update
pd authored
212 @(cd tests && $(MAKE) $@)
c7b5dc4 branch update - not bugfree
pd authored
213 check-force: test-All-force
214 test-All-force:
215 @(cd tests && $(MAKE) test-All FORCE=FORCE)
216 test-Examples-force:
217 @(cd tests && $(MAKE) test-Examples FORCE=FORCE)
218 test-Specific-force:
219 @(cd tests && $(MAKE) test-Specific FORCE=FORCE)
Something went wrong with that request. Please try again.