Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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