Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 185 lines (168 sloc) 5.163 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) \
8f71ebe Removed `PROJECTS'.
hornik authored
15 BUGS INSTALL PLATFORMS 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 \
39 echo "You should \`make docs' now ..."; \
40 fi
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
41
dd42820 Rename Platform.h to Rconfig.h, Version.h to Rversion.h.
hornik authored
42 src/include/Rconfig.h: $(srcdir)/configure \
43 $(srcdir)/src/include/Rconfig.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)
a16651d New targets Makefile and uninstall.
hornik authored
58 @echo "Installing executables ..."
cdb9c2a Call the basic X11 binary `R.X11'.
hornik authored
59 @$(INSTALL_PROGRAM) bin/R.X11 $(rhome)/bin
60 @if test -x bin/R.gnome; then \
61 $(INSTALL_PROGRAM) bin/R.gnome $(rhome)/bin; \
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\**$$' \
68 | grep -v '^bin/R.gnome\**$$'`; do \
aa7eb80 branch update
pd authored
69 $(INSTALL) $${f} $(rhome)/bin; \
1f7ea5b Rewrite.
hornik authored
70 done
71 @for f in Rd2txt Rdconv Rdindex Sd2Rd; do \
aa7eb80 branch update
pd authored
72 $(INSTALL) bin/$${f} $(bindir); \
1f7ea5b Rewrite.
hornik authored
73 done
a16651d New targets Makefile and uninstall.
hornik authored
74 @echo "Installing headers ..."
1f7ea5b Rewrite.
hornik authored
75 @for f in include/*.h; do \
aa7eb80 branch update
pd authored
76 $(INSTALL_DATA) $${f} $(rhome)/include; \
1f7ea5b Rewrite.
hornik authored
77 done
e281dcf Merged from `Makefile' and `Makefile.2nd'.
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 -))
a16651d New targets Makefile and uninstall.
hornik authored
82 @echo " Building help index ..."
83 @(cd $(rhome)/library; cat */TITLE > LibIndex 2> /dev/null)
84 @echo " Building HTML index ..."
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
90 @$(MKINSTALLDIRS) $(rhome)/library
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
91 install-strip:
92 $(MAKE) INSTALL_PROGRAM="${INSTALL_PROGRAM} -s" install
93 uninstall:
a16651d New targets Makefile and uninstall.
hornik authored
94 @echo "Uninstalling library ..."
95 @(cd $(rhome)/library; \
c7b5dc4 branch update - not bugfree
pd authored
96 for p in $(R_PKGS); do rm -rf $${p}; done)
a16651d New targets Makefile and uninstall.
hornik authored
97 @echo " Rebuilding help index ..."
9d3546e Improve uninstall.
hornik authored
98 @(cd $(rhome)/library; \
99 cat */TITLE > LibIndex 2> /dev/null || echo "" > LibIndex)
a16651d New targets Makefile and uninstall.
hornik authored
100 @echo " Rebuilding HTML index ..."
9d3546e Improve uninstall.
hornik authored
101 @if test -x $(rhome)/bin/build-help; then \
102 $(rhome)/bin/build-help --rhome $(rhome) --htmllists; \
103 fi
a16651d New targets Makefile and uninstall.
hornik authored
104 @echo "Uninstalling headers ..."
105 @rm -rf $(rhome)/include
106 @echo "Uninstalling executables ..."
107 @rm -rf $(rhome)/bin
108 @for f in R Rd2txt Rdconv Rdindex Sd2Rd; do \
aa7eb80 branch update
pd authored
109 rm -f $(bindir)/$${f}; \
a16651d New targets Makefile and uninstall.
hornik authored
110 done
c7b5dc4 branch update - not bugfree
pd authored
111 @for f in $(INSTFILES); do \
aa7eb80 branch update
pd authored
112 rm -f $(rhome)/$${f}; \
a16651d New targets Makefile and uninstall.
hornik authored
113 done
114 @for d in afm demos doc etc; do \
aa7eb80 branch update
pd authored
115 (cd $${d} && $(MAKE) $@); \
a16651d New targets Makefile and uninstall.
hornik authored
116 done
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
117
1f7ea5b Rewrite.
hornik authored
118 mostlyclean: clean
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
119 clean:
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
120 @for d in $(SUBDIRS); do \
aa7eb80 branch update
pd authored
121 (cd $${d} && $(MAKE) $@); \
1f7ea5b Rewrite.
hornik authored
122 done
6f16fac branch update
pd authored
123 @if [ "$(srcdir)" != "." ]; then \
124 rm -f $(INSTFILES);
125 fi
1f7ea5b Rewrite.
hornik authored
126 distclean: clean
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
127 @for d in $(SUBDIRS); do \
128 (cd $${d} && $(MAKE) $@); \
1f7ea5b Rewrite.
hornik authored
129 done
ba3f3cc Have make distclean completely remove `bin', `include', and `library'.
hornik authored
130 @rm -rf bin include library
8d5746d Have make clean delete Makefrag.*
hornik authored
131 @rm -f Makeconf Makefile Makefile.bak Makefrag.* \
1f7ea5b Rewrite.
hornik authored
132 config.cache config.log config.status
133 maintainer-clean: distclean
92e8dab Add warning about effects of maintainer-clean.
hornik authored
134 @echo "This command is intended for maintainers to use; it"
135 @echo "deletes files that may need special rules to rebuild"
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
136
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
137 dist: dist-unix
138 dist-unix: distdir
139 -chmod -R a+r $(distdir)
5e4482c Improve distdir.
hornik authored
140 GZIP=$(GZIP) $(TAR) chzf $(distdir).tar.gz $(distdir)
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
141 rm -rf $(distdir)
142 dist-win:
143 distdir: $(DISTFILES)
144 @rm -rf $(distdir)
145 @mkdir $(distdir)
146 @-chmod 755 $(distdir)
147 @for f in $(DISTFILES); do \
148 test -f $(distdir)/$${f} \
d061198 Replace leading spaces by tabs.
hornik authored
149 || ln $(srcdir)/$${f} $(distdir)/$${f} 2>/dev/null \
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
150 || cp -p $(srcdir)/$${f} $(distdir)/$${f}; \
151 done
152 @for d in $(SUBDIRS); do \
153 test -d $(distdir)/$${d} \
154 || mkdir $(distdir)/$${d} \
155 || exit 1; \
156 chmod 755 $(distdir)/$${d}; \
157 (cd $${d} && $(MAKE) distdir) \
158 || exit 1; \
d061198 Replace leading spaces by tabs.
hornik authored
159 done
10da9f2 branch update
pd authored
160 @for d in debian; do \
5e4482c Improve distdir.
hornik authored
161 ((cd $(srcdir); $(TAR) -c -f - --exclude=CVS $${d}) \
162 | (cd $(distdir); $(TAR) -x -f -)) \
a2d7cb8 Remove `stamp-R' when updating.
hornik authored
163 || exit 1; \
164 done
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
165
d8e6946 Add target `pdf'.
hornik authored
166 dvi info pdf::
a16651d New targets Makefile and uninstall.
hornik authored
167 -@(cd doc && $(MAKE) $@)
10da9f2 branch update
pd authored
168 install-dvi install-info install-pdf::
169 -@(cd doc/manual && $(MAKE) $@)
170 uninstall-dvi uninstall-info uninstall-pdf::
171 -@(cd doc/manual && $(MAKE) $@)
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
172
173 TAGS:
174
af1b03b test-All, not just test-Examples
maechler authored
175 check test:: test-All
aa8b39a Renamed strict-tests to test-Specific.
hornik authored
176 test-All test-Examples test-Specific::
ba6787e branch update
pd authored
177 @(cd tests && $(MAKE) $@)
c7b5dc4 branch update - not bugfree
pd authored
178 check-force: test-All-force
179 test-All-force:
180 @(cd tests && $(MAKE) test-All FORCE=FORCE)
181 test-Examples-force:
182 @(cd tests && $(MAKE) test-Examples FORCE=FORCE)
183 test-Specific-force:
184 @(cd tests && $(MAKE) test-Specific FORCE=FORCE)
Something went wrong with that request. Please try again.