Skip to content
Newer
Older
100644 192 lines (174 sloc) 5.33 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)
c7b5dc4 branch update - not bugfree
pd authored Oct 7, 1999
13 INSTFILES = COPYING COPYRIGHTS FAQ MIRROR-SITES NEWS RESOURCES
14 DISTFILES = $(INSTFILES) \
559364c Removed `PLATFORMS'.
hornik authored Jan 25, 2000
15 BUGS INSTALL README VERSION Y2K \
a2d7cb8 Remove `stamp-R' when updating.
hornik authored Oct 5, 1998
16 Makeconf.in Makefile.in \
8f71ebe Removed `PROJECTS'.
hornik authored Dec 30, 1999
17 aclocal.m4 config.site configure configure.in \
a2d7cb8 Remove `stamp-R' when updating.
hornik authored Oct 5, 1998
18 date-stamp
10da9f2 branch update
pd authored Dec 11, 1999
19 SUBDIRS = src afm demos doc etc tests tools
a2d7cb8 Remove `stamp-R' when updating.
hornik authored Oct 5, 1998
20
21 GZIP = --best
22
b2a3d9a Misc fixes and cleanups.
hornik authored Feb 21, 2000
23 all: Makefile Makeconf R docs
1f7ea5b Rewrite.
hornik authored Sep 17, 1998
24
ba6787e branch update
pd authored May 8, 1999
25 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
a16651d New targets Makefile and uninstall.
hornik authored Sep 28, 1998
26 cd $(top_builddir) \
27 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
b2a3d9a Misc fixes and cleanups.
hornik authored Feb 21, 2000
28 Makeconf: $(srcdir)/Makeconf.in $(top_builddir)/config.status
29 cd $(top_builddir) \
30 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
31
32 config.status: $(srcdir)/configure
33 $(SHELL) ./config.status --recheck
34 $(srcdir)/configure: $(srcdir)/configure.in $(srcdir)/aclocal.m4
35 cd $(srcdir) && autoconf
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored Sep 15, 1998
36
6f16fac branch update
pd authored Dec 26, 1999
37 R:
38 @if [ "$(srcdir)" != "." ]; then \
39 for f in $(INSTFILES); do \
40 $(INSTALL_DATA) $(srcdir)/$${f} $(top_builddir); \
41 done; \
42 fi
f68be1e Build demos after src.
hornik authored Feb 14, 2000
43 @for d in tools afm doc etc src demos; do \
aa7eb80 branch update
pd authored Dec 4, 1998
44 (cd $${d} && $(MAKE) R) || exit 1; \
0aaec01 Add demos in install and clean.
hornik authored Sep 22, 1998
45 done
1f7ea5b Rewrite.
hornik authored Sep 17, 1998
46 @if [ ! -f src/library/stamp-docs ]; then \
86f8f19 Install only front-end script to $(bindir).
hornik authored Jan 21, 2000
47 echo "you should \`make docs' now ..."; \
1f7ea5b Rewrite.
hornik authored Sep 17, 1998
48 fi
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored Sep 15, 1998
49
0c845f4 Renamed `Rconfig.h' to `config.h' in `src/include'.
hornik authored Jan 21, 2000
50 src/include/config.h: $(srcdir)/configure \
51 $(srcdir)/src/include/config.h.in
e17f797 Rerun configure with options given originally.
hornik authored Jul 28, 1999
52 $(top_srcdir)/configure --srcdir $(top_srcdir) @config_opts@
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored Sep 15, 1998
53
a16651d New targets Makefile and uninstall.
hornik authored Sep 28, 1998
54 docs help html latex examples:: FORCE
55 -@(cd src/library && $(MAKE) $@)
1f7ea5b Rewrite.
hornik authored Sep 17, 1998
56 FORCE:
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored Sep 15, 1998
57
58 install: all installdirs
a16651d New targets Makefile and uninstall.
hornik authored Sep 28, 1998
59 @for d in afm demos doc etc; do \
aa7eb80 branch update
pd authored Dec 4, 1998
60 (cd $${d} && $(MAKE) $@) || exit 1; \
a16651d New targets Makefile and uninstall.
hornik authored Sep 28, 1998
61 done
1f7ea5b Rewrite.
hornik authored Sep 17, 1998
62 @(cd $(srcdir); \
c7b5dc4 branch update - not bugfree
pd authored Oct 7, 1999
63 for f in $(INSTFILES); do \
aa7eb80 branch update
pd authored Dec 4, 1998
64 $(INSTALL_DATA) $${f} $(rhome); \
1f7ea5b Rewrite.
hornik authored Sep 17, 1998
65 done)
86f8f19 Install only front-end script to $(bindir).
hornik authored Jan 21, 2000
66 @echo "installing executables ..."
cdb9c2a Call the basic X11 binary `R.X11'.
hornik authored Jul 7, 1999
67 @$(INSTALL_PROGRAM) bin/R.X11 $(rhome)/bin
d8151a1 Invokation of GNOME now via `--gui'; GNOME binary now named `R.GNOME'.
hornik authored Jan 21, 2000
68 @if test -x bin/R.GNOME; then \
69 $(INSTALL_PROGRAM) bin/R.GNOME $(rhome)/bin; \
cdb9c2a Call the basic X11 binary `R.X11'.
hornik authored Jul 7, 1999
70 fi
8c38a94 branch update
pd authored Oct 13, 1999
71 @sed "s@R_HOME=.*@R_HOME=$(rhome)\}@" < bin/R > $(rhome)/bin/R
72 @sed "s@R_HOME=.*@R_HOME=$(rhome)\}@" < bin/R > $(bindir)/R
aafd598 Branch update + setjmp problem fixup
pd authored Jan 6, 1999
73 @chmod 755 $(bindir)/R $(rhome)/bin/R
6605adf Fix installation of executables (alternative regexp did not always wo…
hornik authored May 11, 1999
74 @for f in `ls bin/* | grep -v '^bin/R\**$$' \
d061198 Replace leading spaces by tabs.
hornik authored Jan 7, 2000
75 | grep -v '^bin/R.X11\**$$' \
d8151a1 Invokation of GNOME now via `--gui'; GNOME binary now named `R.GNOME'.
hornik authored Jan 21, 2000
76 | grep -v '^bin/R.GNOME\**$$'`; do \
aa7eb80 branch update
pd authored Dec 4, 1998
77 $(INSTALL) $${f} $(rhome)/bin; \
1f7ea5b Rewrite.
hornik authored Sep 17, 1998
78 done
86f8f19 Install only front-end script to $(bindir).
hornik authored Jan 21, 2000
79 @echo "installing headers ..."
1f7ea5b Rewrite.
hornik authored Sep 17, 1998
80 @for f in include/*.h; do \
aa7eb80 branch update
pd authored Dec 4, 1998
81 $(INSTALL_DATA) $${f} $(rhome)/include; \
1f7ea5b Rewrite.
hornik authored Sep 17, 1998
82 done
097a571 Install header files in `R_ext', too.
hornik authored Jan 23, 2000
83 @for f in include/R_ext/*.h; do \
84 $(INSTALL_DATA) $${f} $(rhome)/include/R_ext; \
85 done
86f8f19 Install only front-end script to $(bindir).
hornik authored Jan 21, 2000
86 @echo "installing library ..."
e71c9a3 Improve treatment of ownership in library installation.
hornik authored May 26, 1999
87 @cp -r library $(rhome) || \
88 (cd library; \
89 $(TAR) cf - [a-z]* | (cd $(rhome)/library; $(TAR) xof -))
86f8f19 Install only front-end script to $(bindir).
hornik authored Jan 21, 2000
90 @echo " building help index ..."
a16651d New targets Makefile and uninstall.
hornik authored Sep 28, 1998
91 @(cd $(rhome)/library; cat */TITLE > LibIndex 2> /dev/null)
86f8f19 Install only front-end script to $(bindir).
hornik authored Jan 21, 2000
92 @echo " building HTML index ..."
a16651d New targets Makefile and uninstall.
hornik authored Sep 28, 1998
93 @$(rhome)/bin/build-help --rhome $(rhome) --htmllists
afe5b25 Improve installdirs target.
hornik authored Sep 15, 1998
94 installdirs:
1f7ea5b Rewrite.
hornik authored Sep 17, 1998
95 @$(MKINSTALLDIRS) $(bindir)
96 @$(MKINSTALLDIRS) $(rhome)/bin
97 @$(MKINSTALLDIRS) $(rhome)/include
097a571 Install header files in `R_ext', too.
hornik authored Jan 23, 2000
98 @$(MKINSTALLDIRS) $(rhome)/include/R_ext
1f7ea5b Rewrite.
hornik authored Sep 17, 1998
99 @$(MKINSTALLDIRS) $(rhome)/library
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored Sep 15, 1998
100 install-strip:
101 $(MAKE) INSTALL_PROGRAM="${INSTALL_PROGRAM} -s" install
102 uninstall:
86f8f19 Install only front-end script to $(bindir).
hornik authored Jan 21, 2000
103 @echo "uninstalling library ..."
a16651d New targets Makefile and uninstall.
hornik authored Sep 28, 1998
104 @(cd $(rhome)/library; \
c7b5dc4 branch update - not bugfree
pd authored Oct 7, 1999
105 for p in $(R_PKGS); do rm -rf $${p}; done)
86f8f19 Install only front-end script to $(bindir).
hornik authored Jan 21, 2000
106 @echo " rebuilding help index ..."
9d3546e Improve uninstall.
hornik authored Aug 2, 1999
107 @(cd $(rhome)/library; \
108 cat */TITLE > LibIndex 2> /dev/null || echo "" > LibIndex)
86f8f19 Install only front-end script to $(bindir).
hornik authored Jan 21, 2000
109 @echo " rebuilding HTML index ..."
9d3546e Improve uninstall.
hornik authored Aug 2, 1999
110 @if test -x $(rhome)/bin/build-help; then \
111 $(rhome)/bin/build-help --rhome $(rhome) --htmllists; \
112 fi
86f8f19 Install only front-end script to $(bindir).
hornik authored Jan 21, 2000
113 @echo "uninstalling headers ..."
a16651d New targets Makefile and uninstall.
hornik authored Sep 28, 1998
114 @rm -rf $(rhome)/include
86f8f19 Install only front-end script to $(bindir).
hornik authored Jan 21, 2000
115 @echo "uninstalling executables ..."
a16651d New targets Makefile and uninstall.
hornik authored Sep 28, 1998
116 @rm -rf $(rhome)/bin
86f8f19 Install only front-end script to $(bindir).
hornik authored Jan 21, 2000
117 @rm -f $(bindir)/R
c7b5dc4 branch update - not bugfree
pd authored Oct 7, 1999
118 @for f in $(INSTFILES); do \
aa7eb80 branch update
pd authored Dec 4, 1998
119 rm -f $(rhome)/$${f}; \
a16651d New targets Makefile and uninstall.
hornik authored Sep 28, 1998
120 done
121 @for d in afm demos doc etc; do \
aa7eb80 branch update
pd authored Dec 4, 1998
122 (cd $${d} && $(MAKE) $@); \
a16651d New targets Makefile and uninstall.
hornik authored Sep 28, 1998
123 done
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored Sep 15, 1998
124
1f7ea5b Rewrite.
hornik authored Sep 17, 1998
125 mostlyclean: clean
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored Sep 15, 1998
126 clean:
a2d7cb8 Remove `stamp-R' when updating.
hornik authored Oct 5, 1998
127 @for d in $(SUBDIRS); do \
aa7eb80 branch update
pd authored Dec 4, 1998
128 (cd $${d} && $(MAKE) $@); \
1f7ea5b Rewrite.
hornik authored Sep 17, 1998
129 done
6f16fac branch update
pd authored Dec 26, 1999
130 @if [ "$(srcdir)" != "." ]; then \
9013739 Cleaned up the clean target - it was missing a \ at the end of a line.
bates authored Jan 7, 2000
131 rm -f $(INSTFILES); \
6f16fac branch update
pd authored Dec 26, 1999
132 fi
1f7ea5b Rewrite.
hornik authored Sep 17, 1998
133 distclean: clean
a2d7cb8 Remove `stamp-R' when updating.
hornik authored Oct 5, 1998
134 @for d in $(SUBDIRS); do \
135 (cd $${d} && $(MAKE) $@); \
1f7ea5b Rewrite.
hornik authored Sep 17, 1998
136 done
ba3f3cc Have make distclean completely remove `bin', `include', and `library'.
hornik authored Oct 20, 1998
137 @rm -rf bin include library
8d5746d Have make clean delete Makefrag.*
hornik authored Oct 14, 1998
138 @rm -f Makeconf Makefile Makefile.bak Makefrag.* \
1f7ea5b Rewrite.
hornik authored Sep 17, 1998
139 config.cache config.log config.status
140 maintainer-clean: distclean
86f8f19 Install only front-end script to $(bindir).
hornik authored Jan 21, 2000
141 @echo "This command is intended for maintainers to use; it"
92e8dab Add warning about effects of maintainer-clean.
hornik authored Jan 4, 2000
142 @echo "deletes files that may need special rules to rebuild"
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored Sep 15, 1998
143
a2d7cb8 Remove `stamp-R' when updating.
hornik authored Oct 5, 1998
144 dist: dist-unix
145 dist-unix: distdir
146 -chmod -R a+r $(distdir)
5e4482c Improve distdir.
hornik authored Oct 8, 1998
147 GZIP=$(GZIP) $(TAR) chzf $(distdir).tar.gz $(distdir)
a2d7cb8 Remove `stamp-R' when updating.
hornik authored Oct 5, 1998
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 Jan 7, 2000
156 || ln $(srcdir)/$${f} $(distdir)/$${f} 2>/dev/null \
a2d7cb8 Remove `stamp-R' when updating.
hornik authored Oct 5, 1998
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 Jan 7, 2000
166 done
10da9f2 branch update
pd authored Dec 11, 1999
167 @for d in debian; do \
5e4482c Improve distdir.
hornik authored Oct 8, 1998
168 ((cd $(srcdir); $(TAR) -c -f - --exclude=CVS $${d}) \
169 | (cd $(distdir); $(TAR) -x -f -)) \
a2d7cb8 Remove `stamp-R' when updating.
hornik authored Oct 5, 1998
170 || exit 1; \
171 done
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored Sep 15, 1998
172
d8e6946 Add target `pdf'.
hornik authored Nov 24, 1999
173 dvi info pdf::
a16651d New targets Makefile and uninstall.
hornik authored Sep 28, 1998
174 -@(cd doc && $(MAKE) $@)
10da9f2 branch update
pd authored Dec 11, 1999
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 Sep 15, 1998
179
180 TAGS:
181
af1b03b test-All, not just test-Examples
maechler authored Oct 14, 1998
182 check test:: test-All
aa8b39a Renamed strict-tests to test-Specific.
hornik authored Jul 5, 1999
183 test-All test-Examples test-Specific::
ba6787e branch update
pd authored May 8, 1999
184 @(cd tests && $(MAKE) $@)
c7b5dc4 branch update - not bugfree
pd authored Oct 7, 1999
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.