Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 161 lines (145 sloc) 4.318 kb
e281dcff » hornik
1998-09-15 Merged from `Makefile' and `Makefile.2nd'.
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
a2d7cb87 » hornik
1998-10-05 Remove `stamp-R' when updating.
12 distdir = $(PACKAGE)-$(VERSION)
13 DISTFILES = COPYING COPYRIGHTS INSTALL MIRROR-SITES NEWS PLATFORMS \
14 PROJECTS README RESOURCES TASKS \
15 Makeconf.in Makefile.in \
16 config.site configure configure.in configure.mac configure.win \
17 date-stamp
18 SUBDIRS = afm demos doc etc src tests
19
20 GZIP = --best
21 TAR = tar
22
a16651d0 » hornik
1998-09-28 New targets Makefile and uninstall.
23 all: Makefile R docs
1f7ea5b8 » hornik
1998-09-17 Rewrite.
24
a16651d0 » hornik
1998-09-28 New targets Makefile and uninstall.
25 Makefile:
26 $(srcdir)/Makefile.in $(top_builddir)/config.status
27 cd $(top_builddir) \
28 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
e281dcff » hornik
1998-09-15 Merged from `Makefile' and `Makefile.2nd'.
29
5ddde4bc » maechler
1998-09-17 stamp-R added
30 R: stamp-R
a16651d0 » hornik
1998-09-28 New targets Makefile and uninstall.
31 stamp-R: $(top_builddir)/src/include/Platform.h \
32 $(top_srcdir)/src/*/*.[chf] \
33 $(top_srcdir)/src/library/*/R/*.R
a2d7cb87 » hornik
1998-10-05 Remove `stamp-R' when updating.
34 @rm -f $@
0aaec01b » hornik
1998-09-22 Add demos in install and clean.
35 @for d in afm demos doc etc src; do \
a16651d0 » hornik
1998-09-28 New targets Makefile and uninstall.
36 (cd $$d && $(MAKE) R); \
0aaec01b » hornik
1998-09-22 Add demos in install and clean.
37 done
1f7ea5b8 » hornik
1998-09-17 Rewrite.
38 @if [ ! -f src/library/stamp-docs ]; then \
39 echo "You should \`make docs' now ..."; \
40 fi
5ddde4bc » maechler
1998-09-17 stamp-R added
41 @touch $@
e281dcff » hornik
1998-09-15 Merged from `Makefile' and `Makefile.2nd'.
42
43 $(top_builddir)/src/include/Platform.h: $(srcdir)/date-stamp
44 $(top_srcdir)/configure --srcdir $(top_srcdir)
45
a16651d0 » hornik
1998-09-28 New targets Makefile and uninstall.
46 docs help html latex examples:: FORCE
47 -@(cd src/library && $(MAKE) $@)
1f7ea5b8 » hornik
1998-09-17 Rewrite.
48 FORCE:
e281dcff » hornik
1998-09-15 Merged from `Makefile' and `Makefile.2nd'.
49
50 install: all installdirs
a16651d0 » hornik
1998-09-28 New targets Makefile and uninstall.
51 @for d in afm demos doc etc; do \
52 (cd $$d && $(MAKE) $@); \
53 done
1f7ea5b8 » hornik
1998-09-17 Rewrite.
54 @(cd $(srcdir); \
55 for f in COPYING COPYRIGHTS MIRROR-SITES RESOURCES; do \
56 $(INSTALL_DATA) $$f $(rhome); \
57 done)
a16651d0 » hornik
1998-09-28 New targets Makefile and uninstall.
58 @echo "Installing executables ..."
59 @$(INSTALL_PROGRAM) bin/R.binary $(rhome)/bin
60 @cat bin/R | sed "s@RHOME=.*@RHOME=$(rhome)@" > $(rhome)/bin/R
61 @cat bin/R | sed "s@RHOME=.*@RHOME=$(rhome)@" > $(bindir)/R
62 @chmod 755 $(bindir)/R $(rhome)/bin
1f7ea5b8 » hornik
1998-09-17 Rewrite.
63 @for f in `ls bin/* | grep -v '^R\|R.binary'`; do \
64 $(INSTALL) $$f $(rhome)/bin; \
65 done
66 @for f in Rd2txt Rdconv Rdindex Sd2Rd; do \
67 $(INSTALL) bin/$$f $(bindir); \
68 done
a16651d0 » hornik
1998-09-28 New targets Makefile and uninstall.
69 @echo "Installing headers ..."
1f7ea5b8 » hornik
1998-09-17 Rewrite.
70 @for f in include/*.h; do \
71 $(INSTALL_DATA) $$f $(rhome)/include; \
72 done
e281dcff » hornik
1998-09-15 Merged from `Makefile' and `Makefile.2nd'.
73 @echo "Installing library ..."
a2d7cb87 » hornik
1998-10-05 Remove `stamp-R' when updating.
74 @cd library; $(TAR) cf - [a-z]* | (cd $(rhome)/library; tar xf -)
a16651d0 » hornik
1998-09-28 New targets Makefile and uninstall.
75 @echo " Building help index ..."
76 @(cd $(rhome)/library; cat */TITLE > LibIndex 2> /dev/null)
77 @echo " Building HTML index ..."
78 @$(rhome)/bin/build-help --rhome $(rhome) --htmllists
afe5b256 » hornik
1998-09-15 Improve installdirs target.
79 installdirs:
1f7ea5b8 » hornik
1998-09-17 Rewrite.
80 @$(MKINSTALLDIRS) $(bindir)
81 @$(MKINSTALLDIRS) $(rhome)/bin
82 @$(MKINSTALLDIRS) $(rhome)/include
83 @$(MKINSTALLDIRS) $(rhome)/library
e281dcff » hornik
1998-09-15 Merged from `Makefile' and `Makefile.2nd'.
84 install-strip:
85 $(MAKE) INSTALL_PROGRAM="${INSTALL_PROGRAM} -s" install
86 uninstall:
a16651d0 » hornik
1998-09-28 New targets Makefile and uninstall.
87 @echo "Uninstalling library ..."
88 @(cd $(rhome)/library; \
89 for p in base eda mva stepfun; do rm -rf $$p; done)
90 @echo " Rebuilding help index ..."
91 @(cd $(rhome)/library; cat */TITLE > LibIndex 2> /dev/null)
92 @echo " Rebuilding HTML index ..."
93 @$(rhome)/bin/build-help --rhome $(rhome) --htmllists
94 @echo "Uninstalling headers ..."
95 @rm -rf $(rhome)/include
96 @echo "Uninstalling executables ..."
97 @rm -rf $(rhome)/bin
98 @for f in R Rd2txt Rdconv Rdindex Sd2Rd; do \
99 rm -f $(bindir)/$$f; \
100 done
101 @for f in COPYING COPYRIGHTS MIRROR-SITES RESOURCES; do \
102 rm -f $(rhome)/$$f; \
103 done
104 @for d in afm demos doc etc; do \
105 (cd $$d && $(MAKE) $@); \
106 done
e281dcff » hornik
1998-09-15 Merged from `Makefile' and `Makefile.2nd'.
107
1f7ea5b8 » hornik
1998-09-17 Rewrite.
108 mostlyclean: clean
e281dcff » hornik
1998-09-15 Merged from `Makefile' and `Makefile.2nd'.
109 clean:
a2d7cb87 » hornik
1998-10-05 Remove `stamp-R' when updating.
110 @for d in $(SUBDIRS); do \
a16651d0 » hornik
1998-09-28 New targets Makefile and uninstall.
111 (cd $$d && $(MAKE) $@); \
1f7ea5b8 » hornik
1998-09-17 Rewrite.
112 done
113 @rm -f stamp-R
114 distclean: clean
a2d7cb87 » hornik
1998-10-05 Remove `stamp-R' when updating.
115 @for d in $(SUBDIRS); do \
116 (cd $${d} && $(MAKE) $@); \
1f7ea5b8 » hornik
1998-09-17 Rewrite.
117 done
118 @rm -rf bin/* include/* library/*
119 @rm -f Makeconf Makefile Makefile.bak Makefrag.f77 \
120 config.cache config.log config.status
121 maintainer-clean: distclean
e281dcff » hornik
1998-09-15 Merged from `Makefile' and `Makefile.2nd'.
122
a2d7cb87 » hornik
1998-10-05 Remove `stamp-R' when updating.
123 dist: dist-unix
124 dist-unix: distdir
125 -chmod -R a+r $(distdir)
126 GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
127 rm -rf $(distdir)
128 dist-win:
129 distdir: $(DISTFILES)
130 @rm -rf $(distdir)
131 @mkdir $(distdir)
132 @-chmod 755 $(distdir)
133 @for f in $(DISTFILES); do \
134 test -f $(distdir)/$${f} \
135 || ln $(srcdir)/$${f} $(distdir)/$${f} 2>/dev/null \
136 || cp -p $(srcdir)/$${f} $(distdir)/$${f}; \
137 done
138 @for d in $(SUBDIRS); do \
139 test -d $(distdir)/$${d} \
140 || mkdir $(distdir)/$${d} \
141 || exit 1; \
142 chmod 755 $(distdir)/$${d}; \
143 (cd $${d} && $(MAKE) distdir) \
144 || exit 1; \
145 done
146 @for d in aux debian; do \
147 (cd $(srcdir); \
148 FILES=`find $${d} | sed '/CVS/d'`; \
149 tar cf - $${FILES} | (cd $(distdir); tar xf -)) \
150 || exit 1; \
151 done
e281dcff » hornik
1998-09-15 Merged from `Makefile' and `Makefile.2nd'.
152
a16651d0 » hornik
1998-09-28 New targets Makefile and uninstall.
153 dvi:
154 -@(cd doc && $(MAKE) $@)
e281dcff » hornik
1998-09-15 Merged from `Makefile' and `Makefile.2nd'.
155 info:
156
157 TAGS:
158
1f7ea5b8 » hornik
1998-09-17 Rewrite.
159 check test:: test-Examples
e281dcff » hornik
1998-09-15 Merged from `Makefile' and `Makefile.2nd'.
160 test-All test-Examples::
a16651d0 » hornik
1998-09-28 New targets Makefile and uninstall.
161 -@(cd tests && $(MAKE) $@)
Something went wrong with that request. Please try again.