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