The R Project SVN R

Rev

Rev 6098 | Rev 6167 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6098 Rev 6129
Line 1... Line 1...
1
include ../MkRules
1
include ../MkRules
2
 
2
 
3
MANOBJS= BATCH.Rd COMPILE.Rd INSTALL.Rd REMOVE.Rd RHOME.Rd SHLIB.Rd gnome.Rd hdf5.Rd x11.Rd
3
MANOBJS= BATCH.Rd COMPILE.Rd INSTALL.Rd REMOVE.Rd RHOME.Rd SHLIB.Rd gnome.Rd hdf5.Rd x11.Rd
4
 
4
 
5
all: profiles fixh fixr fixRd fixbin fixmake
5
all: profiles fixh fixr fixbin fixetc
6
 
6
 
7
profiles: ../../../library/base/R/Rprofile ../../../etc/Rprofile
7
profiles: ../../../library/base/R/Rprofile
8
 
8
 
9
../../../library/base/R/Rprofile:  ../../library/profile/Common.R ./profile/rprofile
9
../../../library/base/R/Rprofile:  ../../library/profile/Common.R \
-
 
10
../../library/profile/Rprofile.gnw
10
	@$(ECHO) -------- Building $@ from $^--------
11
	@$(ECHO) -------- Building $@ from $^--------
11
	mkdir -p ../../../library/base/R
12
	mkdir -p ../../../library/base/R
12
	$(CAT)  $^ > $@
13
	$(CAT)  $^ > $@
13
 
14
 
14
../../../etc/Rprofile: ./profile/rprofile.site
-
 
15
	$(MKDIR) -p ../../../etc
-
 
16
	$(CP) -p $^ $@
-
 
17
 
15
 
18
SED0='/^\#/d'
16
SED0='/^\#/d'
19
SED01='/Rsockfork/d'
17
SED01='/Rsockfork/d'
20
SED1='s/F77_SUBROUTINE(\(.*\))/int \1_();/'
18
SED1='s/F77_SUBROUTINE(\(.*\))/int \1_();/'
21
SED2='s/C_FUNCTION(\(.*\))/int \1();/'
19
SED2='s/C_FUNCTION(\(.*\))/int \1();/'
Line 31... Line 29...
31
 
29
 
32
fixbin: $(filter-out ./bin/CVS,$(wildcard ./bin/*))
30
fixbin: $(filter-out ./bin/CVS,$(wildcard ./bin/*))
33
	$(CP) -p  $^ ../../../bin
31
	$(CP) -p  $^ ../../../bin
34
	$(ECHO) done > fixbin
32
	$(ECHO) done > fixbin
35
 
33
 
36
fixr: $(wildcard ./r/*.r) ./r/zero.R $(wildcard ./r/*.html)  \
34
fixr: ./r/zero.R $(wildcard ./r/*.html)
37
      ./profile/rconsole ./profile/rgb.txt ./profile/rdevga
-
 
38
	$(CP) -p ./r/*.gnw.r ../../library/base/R
-
 
39
	$(CP) -p ./r/zero.R ../../../demos/dynload/zero.R
35
	$(CP) -p ./r/zero.R ../../../demos/dynload/zero.R
40
	$(CP) -p ./r/*.html ../../../doc/html
36
	$(CP) -p ./r/*.html ../../../doc/html
41
	$(CP) -p ./profile/rconsole ../../../etc/Rconsole
37
	$(ECHO) done > fixr
-
 
38
 
42
	$(CP) -p ./profile/rdevga ../../../etc/Rdevga	
39
fixetc: ./etc/Rconsole ./etc/rgb.txt ./etc/Rdevga ./etc/Rprofile
43
	$(CP) -p ./profile/rgb.txt ../../../etc
40
	$(CP) -p $^ ../../../etc
44
	$(ECHO) done > fixr		
41
	$(ECHO) done > fixetc
45
 
42
 
46
fixRd: $(wildcard man/*.Rd)
43
fixRd: $(wildcard man/*.Rd)
47
	-$(RM) $(foreach i, $(MANOBJS), ../../library/base/man/$i)
44
	-$(RM) $(foreach i, $(MANOBJS), ../../library/base/man/$i)
48
	$(CP) -p man/*.Rd  ../../library/base/man
45
	$(CP) -p man/*.Rd  ../../library/base/man
49
	$(ECHO) done > fixRd	
46
	$(ECHO) done > fixRd
50
 
-
 
51
fixmake: ../../appl/Makefile ../../main/Makefile ../../nmath/Makefile
-
 
52
 
-
 
53
../../appl/Makefile: make.appl
-
 
54
	$(CP) -p $^ $@
-
 
55
 
-
 
56
../../main/Makefile: make.main
-
 
57
	$(CP) -p $^ $@
-
 
58
 
-
 
59
../../nmath/Makefile: make.nmath
-
 
60
	$(CP) -p $^ $@
-
 
61
 
47
 
62
clean:
48
clean:
63
	$(RM) *~ */*~ fixr fixh fixRd fixbin
49
	$(RM) *~ */*~ fixr fixh fixRd fixbin