Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 189 lines (172 sloc) 5.241 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) \
559364c Removed `PLATFORMS'.
hornik authored
15 BUGS INSTALL 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
10da9f2 branch update
pd authored
19 SUBDIRS = src afm demos doc etc tests tools
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
20
21 GZIP = --best
22
a16651d New targets Makefile and uninstall.
hornik authored
23 all: Makefile R docs
1f7ea5b Rewrite.
hornik authored
24
ba6787e branch update
pd authored
25 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
a16651d New targets Makefile and uninstall.
hornik authored
26 cd $(top_builddir) \
27 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
28
6f16fac branch update
pd authored
29 R:
30 @if [ "$(srcdir)" != "." ]; then \
31 for f in $(INSTFILES); do \
32 $(INSTALL_DATA) $(srcdir)/$${f} $(top_builddir); \
33 done; \
34 fi
062c8bf Also run in `tools'.
hornik authored
35 @for d in tools afm demos doc etc src; do \
aa7eb80 branch update
pd authored
36 (cd $${d} && $(MAKE) R) || exit 1; \
0aaec01 Add demos in install and clean.
hornik authored
37 done
1f7ea5b Rewrite.
hornik authored
38 @if [ ! -f src/library/stamp-docs ]; then \
86f8f19 Install only front-end script to $(bindir).
hornik authored
39 echo "you should \`make docs' now ..."; \
1f7ea5b Rewrite.
hornik authored
40 fi
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
41
0c845f4 Renamed `Rconfig.h' to `config.h' in `src/include'.
hornik authored
42 src/include/config.h: $(srcdir)/configure \
43 $(srcdir)/src/include/config.h.in
e17f797 Rerun configure with options given originally.
hornik authored
44 $(top_srcdir)/configure --srcdir $(top_srcdir) @config_opts@
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
45
a16651d New targets Makefile and uninstall.
hornik authored
46 docs help html latex examples:: FORCE
47 -@(cd src/library && $(MAKE) $@)
1f7ea5b Rewrite.
hornik authored
48 FORCE:
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
49
50 install: all installdirs
a16651d New targets Makefile and uninstall.
hornik authored
51 @for d in afm demos doc etc; do \
aa7eb80 branch update
pd authored
52 (cd $${d} && $(MAKE) $@) || exit 1; \
a16651d New targets Makefile and uninstall.
hornik authored
53 done
1f7ea5b Rewrite.
hornik authored
54 @(cd $(srcdir); \
c7b5dc4 branch update - not bugfree
pd authored
55 for f in $(INSTFILES); do \
aa7eb80 branch update
pd authored
56 $(INSTALL_DATA) $${f} $(rhome); \
1f7ea5b Rewrite.
hornik authored
57 done)
86f8f19 Install only front-end script to $(bindir).
hornik authored
58 @echo "installing executables ..."
cdb9c2a Call the basic X11 binary `R.X11'.
hornik authored
59 @$(INSTALL_PROGRAM) bin/R.X11 $(rhome)/bin
d8151a1 Invokation of GNOME now via `--gui'; GNOME binary now named `R.GNOME'.
hornik authored
60 @if test -x bin/R.GNOME; then \
61 $(INSTALL_PROGRAM) bin/R.GNOME $(rhome)/bin; \
cdb9c2a Call the basic X11 binary `R.X11'.
hornik authored
62 fi
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
6605adf Fix installation of executables (alternative regexp did not always wo…
hornik authored
66 @for f in `ls bin/* | grep -v '^bin/R\**$$' \
d061198 Replace leading spaces by tabs.
hornik authored
67 | grep -v '^bin/R.X11\**$$' \
d8151a1 Invokation of GNOME now via `--gui'; GNOME binary now named `R.GNOME'.
hornik authored
68 | grep -v '^bin/R.GNOME\**$$'`; do \
aa7eb80 branch update
pd authored
69 $(INSTALL) $${f} $(rhome)/bin; \
1f7ea5b Rewrite.
hornik authored
70 done
86f8f19 Install only front-end script to $(bindir).
hornik authored
71 @echo "installing headers ..."
1f7ea5b Rewrite.
hornik authored
72 @for f in include/*.h; do \
aa7eb80 branch update
pd authored
73 $(INSTALL_DATA) $${f} $(rhome)/include; \
1f7ea5b Rewrite.
hornik authored
74 done
097a571 Install header files in `R_ext', too.
hornik authored
75 @for f in include/R_ext/*.h; do \
76 $(INSTALL_DATA) $${f} $(rhome)/include/R_ext; \
77 done
86f8f19 Install only front-end script to $(bindir).
hornik authored
78 @echo "installing library ..."
e71c9a3 Improve treatment of ownership in library installation.
hornik authored
79 @cp -r library $(rhome) || \
80 (cd library; \
81 $(TAR) cf - [a-z]* | (cd $(rhome)/library; $(TAR) xof -))
86f8f19 Install only front-end script to $(bindir).
hornik authored
82 @echo " building help index ..."
a16651d New targets Makefile and uninstall.
hornik authored
83 @(cd $(rhome)/library; cat */TITLE > LibIndex 2> /dev/null)
86f8f19 Install only front-end script to $(bindir).
hornik authored
84 @echo " building HTML index ..."
a16651d New targets Makefile and uninstall.
hornik authored
85 @$(rhome)/bin/build-help --rhome $(rhome) --htmllists
afe5b25 Improve installdirs target.
hornik authored
86 installdirs:
1f7ea5b Rewrite.
hornik authored
87 @$(MKINSTALLDIRS) $(bindir)
88 @$(MKINSTALLDIRS) $(rhome)/bin
89 @$(MKINSTALLDIRS) $(rhome)/include
097a571 Install header files in `R_ext', too.
hornik authored
90 @$(MKINSTALLDIRS) $(rhome)/include/R_ext
1f7ea5b Rewrite.
hornik authored
91 @$(MKINSTALLDIRS) $(rhome)/library
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
92 install-strip:
93 $(MAKE) INSTALL_PROGRAM="${INSTALL_PROGRAM} -s" install
94 uninstall:
86f8f19 Install only front-end script to $(bindir).
hornik authored
95 @echo "uninstalling library ..."
a16651d New targets Makefile and uninstall.
hornik authored
96 @(cd $(rhome)/library; \
c7b5dc4 branch update - not bugfree
pd authored
97 for p in $(R_PKGS); do rm -rf $${p}; done)
86f8f19 Install only front-end script to $(bindir).
hornik authored
98 @echo " rebuilding help index ..."
9d3546e Improve uninstall.
hornik authored
99 @(cd $(rhome)/library; \
100 cat */TITLE > LibIndex 2> /dev/null || echo "" > LibIndex)
86f8f19 Install only front-end script to $(bindir).
hornik authored
101 @echo " rebuilding HTML index ..."
9d3546e Improve uninstall.
hornik authored
102 @if test -x $(rhome)/bin/build-help; then \
103 $(rhome)/bin/build-help --rhome $(rhome) --htmllists; \
104 fi
86f8f19 Install only front-end script to $(bindir).
hornik authored
105 @echo "uninstalling headers ..."
a16651d New targets Makefile and uninstall.
hornik authored
106 @rm -rf $(rhome)/include
86f8f19 Install only front-end script to $(bindir).
hornik authored
107 @echo "uninstalling executables ..."
a16651d New targets Makefile and uninstall.
hornik authored
108 @rm -rf $(rhome)/bin
86f8f19 Install only front-end script to $(bindir).
hornik authored
109 @rm -f $(bindir)/R
110 ## FIXME: old stuff
a16651d New targets Makefile and uninstall.
hornik authored
111 @for f in R Rd2txt Rdconv Rdindex Sd2Rd; do \
aa7eb80 branch update
pd authored
112 rm -f $(bindir)/$${f}; \
a16651d New targets Makefile and uninstall.
hornik authored
113 done
86f8f19 Install only front-end script to $(bindir).
hornik authored
114 ##
c7b5dc4 branch update - not bugfree
pd authored
115 @for f in $(INSTFILES); do \
aa7eb80 branch update
pd authored
116 rm -f $(rhome)/$${f}; \
a16651d New targets Makefile and uninstall.
hornik authored
117 done
118 @for d in afm demos doc etc; do \
aa7eb80 branch update
pd authored
119 (cd $${d} && $(MAKE) $@); \
a16651d New targets Makefile and uninstall.
hornik authored
120 done
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
121
1f7ea5b Rewrite.
hornik authored
122 mostlyclean: clean
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
123 clean:
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
124 @for d in $(SUBDIRS); do \
aa7eb80 branch update
pd authored
125 (cd $${d} && $(MAKE) $@); \
1f7ea5b Rewrite.
hornik authored
126 done
6f16fac branch update
pd authored
127 @if [ "$(srcdir)" != "." ]; then \
9013739 Cleaned up the clean target - it was missing a \ at the end of a line.
bates authored
128 rm -f $(INSTFILES); \
6f16fac branch update
pd authored
129 fi
1f7ea5b Rewrite.
hornik authored
130 distclean: clean
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
131 @for d in $(SUBDIRS); do \
132 (cd $${d} && $(MAKE) $@); \
1f7ea5b Rewrite.
hornik authored
133 done
ba3f3cc Have make distclean completely remove `bin', `include', and `library'.
hornik authored
134 @rm -rf bin include library
8d5746d Have make clean delete Makefrag.*
hornik authored
135 @rm -f Makeconf Makefile Makefile.bak Makefrag.* \
1f7ea5b Rewrite.
hornik authored
136 config.cache config.log config.status
137 maintainer-clean: distclean
86f8f19 Install only front-end script to $(bindir).
hornik authored
138 @echo "This command is intended for maintainers to use; it"
92e8dab Add warning about effects of maintainer-clean.
hornik authored
139 @echo "deletes files that may need special rules to rebuild"
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
140
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
141 dist: dist-unix
142 dist-unix: distdir
143 -chmod -R a+r $(distdir)
5e4482c Improve distdir.
hornik authored
144 GZIP=$(GZIP) $(TAR) chzf $(distdir).tar.gz $(distdir)
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
145 rm -rf $(distdir)
146 dist-win:
147 distdir: $(DISTFILES)
148 @rm -rf $(distdir)
149 @mkdir $(distdir)
150 @-chmod 755 $(distdir)
151 @for f in $(DISTFILES); do \
152 test -f $(distdir)/$${f} \
d061198 Replace leading spaces by tabs.
hornik authored
153 || ln $(srcdir)/$${f} $(distdir)/$${f} 2>/dev/null \
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
154 || cp -p $(srcdir)/$${f} $(distdir)/$${f}; \
155 done
156 @for d in $(SUBDIRS); do \
157 test -d $(distdir)/$${d} \
158 || mkdir $(distdir)/$${d} \
159 || exit 1; \
160 chmod 755 $(distdir)/$${d}; \
161 (cd $${d} && $(MAKE) distdir) \
162 || exit 1; \
d061198 Replace leading spaces by tabs.
hornik authored
163 done
10da9f2 branch update
pd authored
164 @for d in debian; do \
5e4482c Improve distdir.
hornik authored
165 ((cd $(srcdir); $(TAR) -c -f - --exclude=CVS $${d}) \
166 | (cd $(distdir); $(TAR) -x -f -)) \
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
167 || exit 1; \
168 done
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
169
d8e6946 Add target `pdf'.
hornik authored
170 dvi info pdf::
a16651d New targets Makefile and uninstall.
hornik authored
171 -@(cd doc && $(MAKE) $@)
10da9f2 branch update
pd authored
172 install-dvi install-info install-pdf::
173 -@(cd doc/manual && $(MAKE) $@)
174 uninstall-dvi uninstall-info uninstall-pdf::
175 -@(cd doc/manual && $(MAKE) $@)
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
176
177 TAGS:
178
af1b03b test-All, not just test-Examples
maechler authored
179 check test:: test-All
aa8b39a Renamed strict-tests to test-Specific.
hornik authored
180 test-All test-Examples test-Specific::
ba6787e branch update
pd authored
181 @(cd tests && $(MAKE) $@)
c7b5dc4 branch update - not bugfree
pd authored
182 check-force: test-All-force
183 test-All-force:
184 @(cd tests && $(MAKE) test-All FORCE=FORCE)
185 test-Examples-force:
186 @(cd tests && $(MAKE) test-Examples FORCE=FORCE)
187 test-Specific-force:
188 @(cd tests && $(MAKE) test-Specific FORCE=FORCE)
Something went wrong with that request. Please try again.