| 5035 |
ripley |
1 |
include ../MkRules
|
|
|
2 |
|
| 14114 |
ripley |
3 |
all: profiles fixh fixhtml fixbin fixetc fixshare
|
| 5035 |
ripley |
4 |
|
| 6129 |
ripley |
5 |
profiles: ../../../library/base/R/Rprofile
|
| 5035 |
ripley |
6 |
|
| 6129 |
ripley |
7 |
../../../library/base/R/Rprofile: ../../library/profile/Common.R \
|
| 22437 |
hornik |
8 |
../../library/profile/Rprofile.windows
|
| 5035 |
ripley |
9 |
@$(ECHO) -------- Building $@ from $^--------
|
|
|
10 |
mkdir -p ../../../library/base/R
|
| 22402 |
ripley |
11 |
@$(CAT) $^ > $@
|
| 5035 |
ripley |
12 |
|
|
|
13 |
|
| 17844 |
ripley |
14 |
version: ../../include/Rversion.h
|
| 22285 |
duncan |
15 |
fixh: version h/config.h \
|
| 17844 |
ripley |
16 |
../../include/Rconfig.h ../../include/Rmath.h
|
| 21580 |
ripley |
17 |
@$(CP) -p ./h/config.h ./h/psignal.h ../../include
|
|
|
18 |
@$(ECHO) done > fixh
|
| 5035 |
ripley |
19 |
|
| 8497 |
ripley |
20 |
../../include/Rconfig.h: h/config.h
|
| 10046 |
ripley |
21 |
$(SED) -e 1d ../../../tools/GETCONFIG > GC
|
| 9960 |
ripley |
22 |
(cd h; sh ../GC > ../../../include/Rconfig.h)
|
| 10046 |
ripley |
23 |
$(RM) GC
|
| 8497 |
ripley |
24 |
|
|
|
25 |
../../include/Rversion.h: ../../../date-stamp ../../../VERSION
|
| 10046 |
ripley |
26 |
$(SED) -e 1d ../../../tools/GETVERSION > ../../../tools/GV
|
| 10031 |
ripley |
27 |
sh ../../../tools/GV > $@
|
| 10046 |
ripley |
28 |
$(RM) ../../../tools/GV
|
| 8497 |
ripley |
29 |
|
| 22859 |
ripley |
30 |
../../include/Rmath.h: ../../include/Rmath.h0.in
|
| 25952 |
ripley |
31 |
$(SED) -e 's/@RMATH_HAVE_LOG1P@/# define HAVE_LOG1P 1/' -e /@RMATH_HAVE_EXPM1@/d -e 's/@RMATH_HAVE_WORKING_LOG1P@/# define HAVE_WORKING_LOG1P 1/' $< > $@
|
| 17818 |
ripley |
32 |
|
| 15168 |
pd |
33 |
../../../bin/massage-Examples: ../../../share/perl/massage-Examples.pl
|
|
|
34 |
$(SED) -e 's/"contr.poly")/"contr.poly"), pager="console"/' $< > $@
|
| 9960 |
ripley |
35 |
|
| 10046 |
ripley |
36 |
../../../bin/check: ../../scripts/check.in
|
| 17369 |
ripley |
37 |
$(SED) -e 1d -e "s/R CMD/Rcmd/" -e "s/Rd2dvi /Rd2dvi.sh /" $< > $@
|
| 10046 |
ripley |
38 |
|
|
|
39 |
../../../bin/build: ../../scripts/build.in
|
| 11666 |
ripley |
40 |
$(SED) -e 1d -e "s/R CMD/Rcmd/" $< > $@
|
| 10046 |
ripley |
41 |
|
| 11666 |
ripley |
42 |
../../../bin/Sd2Rd: ../../scripts/Sd2Rd.in
|
|
|
43 |
$(SED) -e 1d -e "s/R CMD/Rcmd/" $< > $@
|
|
|
44 |
|
|
|
45 |
../../../bin/Rdconv: ../../scripts/Rdconv.in
|
|
|
46 |
$(SED) -e 1d -e s/\"unix\"/\"windows\"/ -e "s/R CMD/Rcmd/" $< > $@
|
|
|
47 |
|
| 11335 |
ripley |
48 |
../../../bin/Rdiff.sh: ../../scripts/Rdiff
|
| 22522 |
ripley |
49 |
$(SED) -e 1d -e 's/\$${EGREP}/grep -E/' $< > $@
|
| 11335 |
ripley |
50 |
|
| 13508 |
ripley |
51 |
../../../bin/Rprof: ../../scripts/Rprof.in
|
|
|
52 |
$(SED) -e 1d -e "s/R CMD/Rcmd/" $< > $@
|
|
|
53 |
|
| 15168 |
pd |
54 |
fixbin: ../../../bin/massage-Examples ../../../bin/build \
|
| 24658 |
ripley |
55 |
../../../bin/check ../../../bin/Rdconv \
|
| 14056 |
ripley |
56 |
../../../bin/Sd2Rd ../../../bin/Rdiff.sh ../../../bin/Rprof cp2bin
|
| 21580 |
ripley |
57 |
@$(ECHO) done > fixbin
|
| 10031 |
ripley |
58 |
|
|
|
59 |
cp2bin: $(filter-out ./bin/CVS, $(wildcard ./bin/*))
|
| 27896 |
ripley |
60 |
ifeq ($(strip $(BUILD)),CROSS)
|
| 27864 |
ripley |
61 |
@zip -ql bins $^
|
|
|
62 |
@unzip -oq bins -d ../../..
|
|
|
63 |
else
|
| 21580 |
ripley |
64 |
@zip -q bins $^
|
|
|
65 |
@unzip -oaq bins -d ../../..
|
| 27864 |
ripley |
66 |
endif
|
| 21580 |
ripley |
67 |
@$(RM) bins.zip
|
| 5035 |
ripley |
68 |
|
| 13825 |
ripley |
69 |
fixhtml: $(wildcard ./html/*.html) ../../../doc/html/search/SearchEngine.html
|
|
|
70 |
$(CP) -p ./html/*.html ../../../doc/html
|
| 15895 |
ripley |
71 |
$(CP) -p ./html/rwin.html ../../../doc/html/index.html
|
| 21580 |
ripley |
72 |
@$(ECHO) done > fixhtml
|
| 5035 |
ripley |
73 |
|
| 6167 |
ripley |
74 |
fixetc: $(filter-out ./etc/CVS, $(wildcard ./etc/*))
|
| 6129 |
ripley |
75 |
$(CP) -p $^ ../../../etc
|
| 21580 |
ripley |
76 |
@$(ECHO) done > fixetc
|
| 6129 |
ripley |
77 |
|
| 14114 |
ripley |
78 |
fixshare: ./share/tests.mk
|
|
|
79 |
$(MKDIR) -p ../../../share/make
|
| 17844 |
ripley |
80 |
$(CP) -p $^ ../../../share/make/wintests.mk
|
| 21580 |
ripley |
81 |
@$(ECHO) done > fixshare
|
| 14114 |
ripley |
82 |
|
| 5035 |
ripley |
83 |
clean:
|
| 14136 |
ripley |
84 |
$(RM) *~ */*~ fixhtml fixh fixbin fixetc fixshare
|
| 8239 |
ripley |
85 |
|
| 15811 |
ripley |
86 |
distclean: clean
|
| 22285 |
duncan |
87 |
$(RM) -f ../../../tools/GV
|
| 15811 |
ripley |
88 |
|
| 8239 |
ripley |
89 |
../../../doc/html/search/SearchEngine.html:../../../doc/KEYWORDS.db
|
|
|
90 |
(cd ../../../doc; \
|
|
|
91 |
cat html/search/SearchEngine-head.html > html/search/SearchEngine.html; \
|
| 9878 |
ripley |
92 |
perl ../tools/keywords2html.pl KEYWORDS.db >> html/search/SearchEngine.html; \
|
| 8239 |
ripley |
93 |
cat html/search/SearchEngine-foot.html >> html/search/SearchEngine.html)
|