The R Project SVN R

Rev

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

Rev 6661 Rev 6994
Line 3... Line 3...
3
PERL=perl
3
PERL=perl
4
CAT=cat
4
CAT=cat
5
CP=cp
5
CP=cp
6
RM=rm
6
RM=rm
7
 
7
 
-
 
8
RHOME=$(shell cd ../../..; pwd)# must be absolute path
-
 
9
PKGDIR=../../library
-
 
10
RLIB=$(RHOME)/library
-
 
11
 
8
indices:
12
indices:
9
	$(PERL) build.help ${DOS} -htmllists
13
	$(PERL) build.help ${DOS} -htmllists
10
 
14
 
11
help-%: 
15
pkg-% help-%: 
12
	$(PERL) build.help ${DOS} -nroff -html -example -latex $*
16
	$(PERL) build.help ${DOS} -nroff -html -example -latex $(PKGDIR)/$* $(RLIB)
13
 
17
 
14
chm-%: 
18
chm-%: 
15
	$(PERL) build.help ${DOS} -chm $*
19
	$(PERL) build.help ${DOS} -chm $(PKGDIR)/$* $(RLIB)
16
# hhc always gives an error code
20
# hhc always gives an error code
17
	$(MAKE) -C ../../library/$*/chm -f ../../../gnuwin32/help/Makefile $*.chm
21
	$(MAKE) -C $(PKGDIR)/$*/chm -f $(RHOME)/src/gnuwin32/help/Makefile $*.chm
18
	mkdir -p ../../../library/$*/chtml
22
	mkdir -p $(RLIB)/$*/chtml
19
	cp ../../library/$*/chm/$*.chm ../../../library/$*/chtml
23
	$(CP) $(PKGDIR)/$*/chm/$*.chm $(RLIB)/$*/chtml
20
 
24
 
21
winhlp-%: chm-%
25
winhlp-%: chm-%
22
	$(MAKE) -C ../../library/$*/chm -f ../../../gnuwin32/help/Makefile $*.hlp
26
	$(MAKE) -C $(PKGDIR)/$*/chm -f $(RHOME)/src/gnuwin32/help/Makefile $*.hlp
23
	mkdir -p ../../../library/$*/winhlp
27
	mkdir -p $(RLIB)/$*/winhlp
24
	cp ../../library/$*/chm/$*.cnt ../../library/$*/chm/$*.hlp ../../../library/$*/winhlp
28
	$(CP) $(PKGDIR)/$*/chm/$*.cnt $(PKGDIR)/$*/chm/$*.hlp $(RLIB)/$*/winhlp
25
 
29
 
-
 
30
# need not have HTML installed when building packages
26
contents-%:
31
contents-%:
27
	$(PERL) Rd2contents ../../library/$* ../../../library/$*/CONTENTS
32
	$(PERL) Rd2contents $(PKGDIR)/$* $(RLIB)/$*/CONTENTS
28
	$(CAT) ../../../library/*/CONTENTS > ../../../doc/html/search/index.txt
33
	@mkdir -p $(RHOME)/doc/html/search
29
 
-
 
30
pkg-%:
-
 
31
	$(PERL) build.help ${DOS} -nroff -html -example -latex ../../library/$*
34
	$(CAT) $(RHOME)/library/*/CONTENTS > $(RHOME)/doc/html/search/index.txt
32
 
35
 
33
ziphelp-%:
36
ziphelp-%:
34
	$(MAKE) -C ../../../library/$* -f ../../src/gnuwin32/help/Makefile ZIPFLAGS=jqX  PKG=$* zipit
37
	$(MAKE) -C $(RLIB)/$* -f $(RHOME)/src/gnuwin32/help/Makefile ZIPFLAGS=jqX  PKG=$* zipit
35
 
38
 
36
ziponlyhelp-%:
39
ziponlyhelp-%:
37
	$(MAKE) -C ../../../library/$* -f ../../src/gnuwin32/help/Makefile ZIPFLAGS=jqmX PKG=$* zipit
40
	$(MAKE) -C $(RLIB)/$* -f $(RHOME)/src/gnuwin32/help/Makefile ZIPFLAGS=jqmX PKG=$* zipit
38
 
41
 
39
 
42
 
40
winhelp-%:
43
winhelp-%:
41
	$(MAKE) -C ../../library/$* -f ../../gnuwin32/help/Makefile PKG=$* win
44
	$(MAKE) -C $(PKGDIR)/$* -f $(RHOME)/src/gnuwin32/help/Makefile PKG=$* win
42
 
45
 
43
latex-%:
46
latex-%:
44
	$(MAKE) -C ../../../library/$* -f ../../src/gnuwin32/help/Makefile PKG=$* unzipit
47
	$(MAKE) -C $(RLIB)/$* -f $(RHOME)/src/gnuwin32/help/Makefile PKG=$* unzipit
45
	$(PERL) build.help ${DOS} -latex ../../library/$*
48
	$(PERL) build.help ${DOS} -latex $(PKGDIR)/$*
46
 
49
 
47
clean:
50
clean:
48
	$(RM) -fr *~ *.o *.obj *.dll *.def *.a
51
	$(RM) -fr *~ *.o *.obj *.dll *.def *.a
49
 
52
 
50
# to be run from src/library/pkg/chm
53
# to be run from src/library/pkg/chm
Line 55... Line 58...
55
 
58
 
56
%.hlp: %.rtf logo.bmp
59
%.hlp: %.rtf logo.bmp
57
	 hcrtf /x $*.hpj
60
	 hcrtf /x $*.hpj
58
 
61
 
59
%.rtf: $(HTM)
62
%.rtf: $(HTM)
60
	perl ../../../gnuwin32/help/html-to-rtf.pl $*.hhp
63
	perl $(RHOME)/src/gnuwin32/help/html-to-rtf.pl $*.hhp
61
 
64
 
62
logo.jpg: ../../../../doc/html/logo.jpg
65
logo.jpg: $(RHOME)/doc/html/logo.jpg
63
	$(CP) $^ $@
66
	$(CP) $^ $@
64
 
67
 
65
logo.bmp: ../../../gnuwin32/help/logo.bmp
68
logo.bmp: $(RHOME)/src/gnuwin32/help/logo.bmp
66
	$(CP) $^ $@
69
	$(CP) $^ $@
67
 
70
 
68
# following are designed to be run from the library/pkg directory:
71
# following are designed to be run from the library/pkg directory:
69
 
72
 
70
zipit: help/Rhelp.zip
73
zipit: help/Rhelp.zip
71
unzipit:
74
unzipit:
72
	-$(MAKE) -C latex -f ../../../src/gnuwin32/help/Makefile uz-Rhelp
75
	-$(MAKE) -C latex -f $(RHOME)/src/gnuwin32/help/Makefile uz-Rhelp
73
 
76
 
74
help/Rhelp.zip: $(wildcard ../../src/library/$(PKG)/man/*.Rd \
77
help/Rhelp.zip: $(wildcard ../../src/library/$(PKG)/man/*.Rd \
75
../../src/library/$(PKG)/man/windows/*.Rd)
78
../../src/library/$(PKG)/man/windows/*.Rd)
76
	-$(MAKE) -C help  -f ../../../src/gnuwin32/help/Makefile uz-Rhelp
79
	-$(MAKE) -C help  -f $(RHOME)/src/gnuwin32/help/Makefile uz-Rhelp
77
	-$(MAKE) -C R-ex  -f ../../../src/gnuwin32/help/Makefile uz-Rex
80
	-$(MAKE) -C R-ex  -f $(RHOME)/src/gnuwin32/help/Makefile uz-Rex
78
	-$(MAKE) -C latex -f ../../../src/gnuwin32/help/Makefile uz-Rhelp
81
	-$(MAKE) -C latex -f $(RHOME)/src/gnuwin32/help/Makefile uz-Rhelp
79
	-$(MAKE) -C ../../src/gnuwin32/help help-$(PKG)
82
	-$(MAKE) -C $(RHOME)/src/gnuwin32/help help-$(PKG)
80
	zip -${ZIPFLAGS} help/Rhelp help/* -x help/00Titles help/AnIndex
83
	zip -${ZIPFLAGS} help/Rhelp help/* -x help/00Titles help/AnIndex
81
	zip -${ZIPFLAGS} R-ex/Rex R-ex/*.R
84
	zip -${ZIPFLAGS} R-ex/Rex R-ex/*.R
82
	zip -${ZIPFLAGS} latex/Rhelp latex/*.tex
85
	zip -${ZIPFLAGS} latex/Rhelp latex/*.tex
83
 
86
 
84
uz-%:
87
uz-%: