Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 108 lines (87 sloc) 2.57 kb
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
1 #
2 # ${RHOME}/Makefile
3
4 VPATH = @srcdir@
5 srcdir = @srcdir@
6 top_srcdir = @top_srcdir@
7
8 top_builddir = .
9
10 include $(top_builddir)/Makeconf
11
e074e3e No direct wildcard in base_src target.
hornik authored
12 base_src = `ls $(top_srcdir)/src/*/*.[chf] \
13 $(top_srcdir)/src/library/*/R/*.R`
1f7ea5b Rewrite.
hornik authored
14
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
15 all: R docs
16
5ddde4b stamp-R added
maechler authored
17 R: stamp-R
38d20e9 stamp-R properly
maechler authored
18 stamp-R: $(top_builddir)/src/include/Platform.h $(base_src)
0aaec01 Add demos in install and clean.
hornik authored
19 @for d in afm demos doc etc src; do \
20 cd $$d; $(MAKE) R; cd ..; \
21 done
1f7ea5b Rewrite.
hornik authored
22 @if [ ! -f src/library/stamp-docs ]; then \
23 echo "You should \`make docs' now ..."; \
24 fi
5ddde4b stamp-R added
maechler authored
25 @touch $@
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
26
27 $(top_builddir)/src/include/Platform.h: $(srcdir)/date-stamp
28 $(top_srcdir)/configure --srcdir $(top_srcdir)
29
e074e3e No direct wildcard in base_src target.
hornik authored
30 $(base_src):
31
1f7ea5b Rewrite.
hornik authored
32 docs help html latex dvi:: FORCE
33 -@cd src/library; $(MAKE) $@
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
34
1f7ea5b Rewrite.
hornik authored
35 FORCE:
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
36
37 install: all installdirs
1f7ea5b Rewrite.
hornik authored
38 $(INSTALL_DATA) $(srcdir)/R.1 $(mandir)/man1
39 $(INSTALL_DATA) $(srcdir)/Rdconv.1 $(mandir)/man1
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
40 (cd $(mandir)/man1; \
41 for f in Rd2txt.1 Rdindex.1 Sd2Rd.1; \
42 do rm -f $$f; $(LN_S) Rdconv.1 $$f; \
43 done)
1f7ea5b Rewrite.
hornik authored
44 @(cd $(srcdir); \
45 for f in COPYING COPYRIGHTS MIRROR-SITES RESOURCES; do \
46 $(INSTALL_DATA) $$f $(rhome); \
47 done)
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
48 cd afm; $(MAKE) $@
49 $(INSTALL_PROGRAM) bin/R.binary $(rhome)/bin
1f7ea5b Rewrite.
hornik authored
50 cat bin/R | sed "s@RHOME=.*@RHOME=$(rhome)@" > $(rhome)/bin/R
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
51 cat bin/R | sed "s@RHOME=.*@RHOME=$(rhome)@" > $(bindir)/R
1f7ea5b Rewrite.
hornik authored
52 chmod 755 $(bindir)/R $(rhome)/bin
53 @for f in `ls bin/* | grep -v '^R\|R.binary'`; do \
54 $(INSTALL) $$f $(rhome)/bin; \
55 done
56 @for f in Rd2txt Rdconv Rdindex Sd2Rd; do \
57 $(INSTALL) bin/$$f $(bindir); \
58 done
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
59 cd demos; $(MAKE) $@
60 cd doc; $(MAKE) $@
61 cd etc; $(MAKE) $@
1f7ea5b Rewrite.
hornik authored
62 @for f in include/*.h; do \
63 $(INSTALL_DATA) $$f $(rhome)/include; \
64 done
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
65 @echo "Installing library ..."
66 cd library; tar cf - [a-z]* | (cd $(rhome)/library; tar xf -)
67 (cd $(rhome)/library; cat */TITLE > LibIndex 2> /dev/null)
1f7ea5b Rewrite.
hornik authored
68 $(rhome)/bin/build-help --rhome $(rhome) --htmllists
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
69
afe5b25 Improve installdirs target.
hornik authored
70 installdirs:
1f7ea5b Rewrite.
hornik authored
71 @$(MKINSTALLDIRS) $(bindir)
72 @$(MKINSTALLDIRS) $(mandir)/man1
73 @$(MKINSTALLDIRS) $(rhome)/bin
74 @$(MKINSTALLDIRS) $(rhome)/etc
75 @$(MKINSTALLDIRS) $(rhome)/include
76 @$(MKINSTALLDIRS) $(rhome)/library
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
77
78 install-strip:
79 $(MAKE) INSTALL_PROGRAM="${INSTALL_PROGRAM} -s" install
80
81 uninstall:
82
1f7ea5b Rewrite.
hornik authored
83 mostlyclean: clean
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
84 clean:
0aaec01 Add demos in install and clean.
hornik authored
85 @for d in afm demos doc etc src; do \
1f7ea5b Rewrite.
hornik authored
86 cd $$d; $(MAKE) $@; cd ..; \
87 done
88 @rm -f stamp-R
89 distclean: clean
90 @for d in afm demos doc etc src; do \
91 cd $$d; $(MAKE) $@; cd ..; \
92 done
93 @rm -rf bin/* include/* library/*
94 @rm -f Makeconf Makefile Makefile.bak Makefrag.f77 \
95 config.cache config.log config.status
96 maintainer-clean: distclean
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
97
98 dist:
99
100 info:
101
102 TAGS:
103
1f7ea5b Rewrite.
hornik authored
104 check test:: test-Examples
e281dcf Merged from `Makefile' and `Makefile.2nd'.
hornik authored
105
106 test-All test-Examples::
107 -@cd tests; $(MAKE) $@
Something went wrong with that request. Please try again.