The R Project SVN R

Rev

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

Rev 6129 Rev 6167
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
-
 
4
 
-
 
5
all: profiles fixh fixr fixbin fixetc
3
all: profiles fixh fixr fixbin fixetc
6
 
4
 
7
profiles: ../../../library/base/R/Rprofile
5
profiles: ../../../library/base/R/Rprofile
8
 
6
 
9
../../../library/base/R/Rprofile:  ../../library/profile/Common.R \
7
../../../library/base/R/Rprofile:  ../../library/profile/Common.R \
Line 18... Line 16...
18
SED1='s/F77_SUBROUTINE(\(.*\))/int \1_();/'
16
SED1='s/F77_SUBROUTINE(\(.*\))/int \1_();/'
19
SED2='s/C_FUNCTION(\(.*\))/int \1();/'
17
SED2='s/C_FUNCTION(\(.*\))/int \1();/'
20
SED3='s/F77_SUBROUTINE(\(.*\))/	{ "\1_",	\1_},/'
18
SED3='s/F77_SUBROUTINE(\(.*\))/	{ "\1_",	\1_},/'
21
SED4='s/C_FUNCTION(\(.*\))/{ "\1",	\1 },/'
19
SED4='s/C_FUNCTION(\(.*\))/{ "\1",	\1 },/'
22
 
20
 
23
fixh: h/Rconfig.h ../../../date-stamp ../../appl/ROUTINES
21
../../include/FFDecl.h: ../../appl/ROUTINES
24
	$(CP) -p ./h/Rconfig.h ./h/psignal.h ../../include
-
 
25
	sh ./GETVERSION > ../../include/Rversion.h
-
 
26
	$(SED) -e $(SED0) -e $(SED01) -e $(SED1) -e $(SED2) ../../appl/ROUTINES > ../../include/FFDecl.h
22
	$(SED) -e $(SED0) -e $(SED01) -e $(SED1) -e $(SED2) ../../appl/ROUTINES > ../../include/FFDecl.h
-
 
23
../../include/FFTab.h: ../../appl/ROUTINES
27
	$(SED) -e $(SED0) -e $(SED01) -e $(SED3) -e $(SED4) ../../appl/ROUTINES > ../../include/FFTab.h
24
	$(SED) -e $(SED0) -e $(SED01) -e $(SED3) -e $(SED4) ../../appl/ROUTINES > ../../include/FFTab.h
-
 
25
 
-
 
26
 
-
 
27
fixh: h/Rconfig.h ../../../date-stamp ../../include/FFDecl.h ../../include/FFTab.h
-
 
28
	$(CP) -p ./h/Rconfig.h ./h/psignal.h ../../include
-
 
29
	sh ./GETVERSION > ../../include/Rversion.h
28
	$(ECHO) done > fixh
30
	$(ECHO) done > fixh
29
 
31
 
30
fixbin: $(filter-out ./bin/CVS,$(wildcard ./bin/*))
32
fixbin: $(filter-out ./bin/CVS, $(wildcard ./bin/*))
31
	$(CP) -p  $^ ../../../bin
33
	$(CP) -p  $^ ../../../bin
32
	$(ECHO) done > fixbin
34
	$(ECHO) done > fixbin
33
 
35
 
34
fixr: ./r/zero.R $(wildcard ./r/*.html)
36
fixr: $(wildcard ./r/*.html)
35
	$(CP) -p ./r/zero.R ../../../demos/dynload/zero.R
-
 
36
	$(CP) -p ./r/*.html ../../../doc/html
37
	$(CP) -p ./r/*.html ../../../doc/html
37
	$(ECHO) done > fixr
38
	$(ECHO) done > fixr
38
 
39
 
39
fixetc: ./etc/Rconsole ./etc/rgb.txt ./etc/Rdevga ./etc/Rprofile
40
fixetc: $(filter-out ./etc/CVS, $(wildcard ./etc/*))
40
	$(CP) -p $^ ../../../etc
41
	$(CP) -p $^ ../../../etc
41
	$(ECHO) done > fixetc
42
	$(ECHO) done > fixetc
42
 
43
 
43
fixRd: $(wildcard man/*.Rd)
-
 
44
	-$(RM) $(foreach i, $(MANOBJS), ../../library/base/man/$i)
-
 
45
	$(CP) -p man/*.Rd  ../../library/base/man
-
 
46
	$(ECHO) done > fixRd
-
 
47
 
-
 
48
clean:
44
clean:
49
	$(RM) *~ */*~ fixr fixh fixRd fixbin
45
	$(RM) *~ */*~ fixr fixh fixbin fixetc