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