The R Project SVN R

Rev

Rev 22670 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22670 Rev 28070
Line 7... Line 7...
7
SED=sed
7
SED=sed
8
RVER = `cut -d' ' -f1 ../../VERSION | sed -n 1p`
8
RVER = `cut -d' ' -f1 ../../VERSION | sed -n 1p`
9
 
9
 
10
SEDVER = -e s/@RVER@/$(RVER)/g -e s/@RWVER@/$(RPREFIX)/g
10
SEDVER = -e s/@RVER@/$(RVER)/g -e s/@RWVER@/$(RPREFIX)/g
11
 
11
 
12
FAQs: rw-FAQ fixed/html/rw-FAQ.html
12
FAQs: rw-FAQ ../../doc/html/rw-FAQ.html
13
 
13
 
14
fixed/html/rw-FAQ.html: rw-FAQ.texi ../../VERSION
14
../../doc/html/rw-FAQ.html: rw-FAQ.texi ../../VERSION
15
	@$(SED) $(SEDVER) $< > tmp.texi
15
	@$(SED) $(SEDVER) $< | \
16
	makeinfo --no-split --html --no-headers --number-sections -o tmp.html tmp.texi
16
	  makeinfo --no-split --html --no-headers --number-sections -o $@ 
17
	-tidy tmp.html > tmp2.html 2> /dev/null
-
 
18
	@if [ ! -s tmp2.html ] ; then \
-
 
19
	  echo "*** tidy appears to be non-functional ***" ; \
-
 
20
	  exit 111 ; \
-
 
21
	fi
-
 
22
	@mv -f tmp2.html $@
-
 
23
	@rm tmp.texi tmp.html
-
 
24
 
17
 
25
rw-FAQ: rw-FAQ.texi ../../VERSION
18
rw-FAQ: rw-FAQ.texi ../../VERSION
26
	$(SED) $(SEDVER) $< | \
19
	$(SED) $(SEDVER) $< | \
27
	  makeinfo --no-headers --number-sections -o $@
20
	  makeinfo --no-headers --number-sections -o $@