Skip to content

HTTPS clone URL

Subversion checkout URL

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