annotate main/fixed/doc/Makefile @ 9481:d84d2fea3c90 octave-forge

Re-enable compilation of fixed package
author jordigh
date Wed, 22 Feb 2012 22:07:33 +0000
parents 67c1ef5699d5
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1403
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
1 sinclude ../../../Makeconf
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
2
2397
671181dd32f5 First cut and packaging and test build with configure;make. Works partially, with some broken packages. extras/nonfree to be converted
adb014
parents: 2201
diff changeset
3 # Fill in the variables as it makes testing the package manager easier
1520
074cb2c6d7a0 Allow dist, distclean and clean targets to run without Makeconf. Replace include with sinclude in Makefiles. Build fixed and comm docs as part of dist target
adb014
parents: 1508
diff changeset
4 ifeq ($(MKDOC),)
074cb2c6d7a0 Allow dist, distclean and clean targets to run without Makeconf. Replace include with sinclude in Makefiles. Build fixed and comm docs as part of dist target
adb014
parents: 1508
diff changeset
5 MKDOC = ../../../admin/mkdoc
074cb2c6d7a0 Allow dist, distclean and clean targets to run without Makeconf. Replace include with sinclude in Makefiles. Build fixed and comm docs as part of dist target
adb014
parents: 1508
diff changeset
6 MKTEXI = ../../../admin/mktexi
074cb2c6d7a0 Allow dist, distclean and clean targets to run without Makeconf. Replace include with sinclude in Makefiles. Build fixed and comm docs as part of dist target
adb014
parents: 1508
diff changeset
7 MAKEINFO = makeinfo --no-split
9481
d84d2fea3c90 Re-enable compilation of fixed package
jordigh
parents: 4774
diff changeset
8 TEXI2PDF = texi2pdf --clean
1520
074cb2c6d7a0 Allow dist, distclean and clean targets to run without Makeconf. Replace include with sinclude in Makefiles. Build fixed and comm docs as part of dist target
adb014
parents: 1508
diff changeset
9 DVIPS = dvips
2539
5e5735d78c9a Documentation updates
adb014
parents: 2397
diff changeset
10 LN_S = ln -s
1520
074cb2c6d7a0 Allow dist, distclean and clean targets to run without Makeconf. Replace include with sinclude in Makefiles. Build fixed and comm docs as part of dist target
adb014
parents: 1508
diff changeset
11 endif
074cb2c6d7a0 Allow dist, distclean and clean targets to run without Makeconf. Replace include with sinclude in Makefiles. Build fixed and comm docs as part of dist target
adb014
parents: 1508
diff changeset
12
1403
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
13 FIXEDVERTARGET = fixedversion.txi
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
14 INFODOC = fixed.info
2397
671181dd32f5 First cut and packaging and test build with configure;make. Works partially, with some broken packages. extras/nonfree to be converted
adb014
parents: 2201
diff changeset
15 PSDOC = $(patsubst %.info,%.ps,$(INFODOC))
671181dd32f5 First cut and packaging and test build with configure;make. Works partially, with some broken packages. extras/nonfree to be converted
adb014
parents: 2201
diff changeset
16 PDFDOC = $(patsubst %.info,%.pdf,$(INFODOC))
2558
d5a7f97cc2f6 Latest mega package manager update
adb014
parents: 2543
diff changeset
17 HTMLDOC = $(patsubst %.info,%.html,$(INFODOC))
2397
671181dd32f5 First cut and packaging and test build with configure;make. Works partially, with some broken packages. extras/nonfree to be converted
adb014
parents: 2201
diff changeset
18 TEXIDOC = $(patsubst %.info,%.texi,$(INFODOC))
671181dd32f5 First cut and packaging and test build with configure;make. Works partially, with some broken packages. extras/nonfree to be converted
adb014
parents: 2201
diff changeset
19 DOCS = $(INFODOC) $(PDFDOC)
1403
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
20 DOCSTRINGS = DOCSTRINGS
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
21 INDEX = ../INDEX
2397
671181dd32f5 First cut and packaging and test build with configure;make. Works partially, with some broken packages. extras/nonfree to be converted
adb014
parents: 2201
diff changeset
22 TMPDELETES = *.log *.dvi $(DOCSTRINGS) $(FIXEDVERTARGET) $(TEXIDOC) *~
4774
67c1ef5699d5 Make sure that the derived texinfo files are kept so that they can be included in the package
adb014
parents: 4636
diff changeset
23 DELETES = $(TMPDELETES) *.ps *.texi *.info $(DOCS) *.html fixed/ html/
1403
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
24
2558
d5a7f97cc2f6 Latest mega package manager update
adb014
parents: 2543
diff changeset
25 all : $(PDFDOC) $(HTMLDOC) ../inst/doc.info
2397
671181dd32f5 First cut and packaging and test build with configure;make. Works partially, with some broken packages. extras/nonfree to be converted
adb014
parents: 2201
diff changeset
26
671181dd32f5 First cut and packaging and test build with configure;make. Works partially, with some broken packages. extras/nonfree to be converted
adb014
parents: 2201
diff changeset
27 ../inst/doc.info : $(INFODOC)
671181dd32f5 First cut and packaging and test build with configure;make. Works partially, with some broken packages. extras/nonfree to be converted
adb014
parents: 2201
diff changeset
28 cp -f $(INFODOC) ../inst/doc.info
1403
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
29
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
30 $(FIXEDVERTARGET) :
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
31 @echo "Creating $@"; $(RM) -f $@; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
32 echo "@set VERSION $(OCTAVEFIXEDVERSION)" > $@
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
33
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
34 %.dvi : %.texi
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
35 @if test "x$(TEXI2DVI)" != "x"; then \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
36 echo "Making dvi $@"; \
4636
3e22396b3405 Documentation build fixes
adb014
parents: 3380
diff changeset
37 TEXINPUTS="./:../../..:$(TEXINPUTS):"; \
1403
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
38 export TEXINPUTS; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
39 $(TEXI2DVI) $< ; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
40 fi
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
41
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
42 %.ps : %.dvi
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
43 @if test "x$(TEXI2DVI)" != "x" && test "x$(DVIPS)" != "x"; then \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
44 echo "Making postscript $@"; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
45 $(DVIPS) -o $@ $< ; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
46 fi
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
47
4636
3e22396b3405 Documentation build fixes
adb014
parents: 3380
diff changeset
48 ifeq (,$(TEXI2PDF))
1403
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
49 %.pdf : %.dvi
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
50 @if test "x$(TEXI2DVI)" != "x" && test "x$(DVIPDF)" != "x"; then \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
51 echo "Making pdf $@"; \
3380
dd09505fb29a fixed DVIPDF calling syntax by removing output file specification (use default one)
goffioul
parents: 2558
diff changeset
52 $(DVIPDF) $< ; \
1403
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
53 fi
4636
3e22396b3405 Documentation build fixes
adb014
parents: 3380
diff changeset
54 else
3e22396b3405 Documentation build fixes
adb014
parents: 3380
diff changeset
55 %.pdf : %.texi
3e22396b3405 Documentation build fixes
adb014
parents: 3380
diff changeset
56 @if test "x$(TEXI2PDF)" != "x"; then \
3e22396b3405 Documentation build fixes
adb014
parents: 3380
diff changeset
57 echo "Making pdf $@"; \
3e22396b3405 Documentation build fixes
adb014
parents: 3380
diff changeset
58 TEXINPUTS="./:../../..:$(TEXINPUTS):"; \
3e22396b3405 Documentation build fixes
adb014
parents: 3380
diff changeset
59 export TEXINPUTS; \
3e22396b3405 Documentation build fixes
adb014
parents: 3380
diff changeset
60 $(TEXI2PDF) $< ; \
3e22396b3405 Documentation build fixes
adb014
parents: 3380
diff changeset
61 fi
3e22396b3405 Documentation build fixes
adb014
parents: 3380
diff changeset
62 endif
1403
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
63
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
64 %.info : %.texi
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
65 @if test "x$(MAKEINFO)" != "x"; then \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
66 echo "Making info $@"; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
67 $(MAKEINFO) -I./ -I../../../ $< ; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
68 fi
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
69
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
70 # Need a stupid copy of the TOC for older texi2html versions
2539
5e5735d78c9a Documentation updates
adb014
parents: 2397
diff changeset
71 # Newer texi2html place documentation in a sub-directory
1403
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
72 %.html : %.texi
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
73 @if test "x$(TEXI2HTML)" != "x"; then \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
74 echo "Making html $@"; \
2558
d5a7f97cc2f6 Latest mega package manager update
adb014
parents: 2543
diff changeset
75 $(TEXI2HTML) -I . -I ../../.. -iftex --subdir=./ -expandinfo $< ; \
2543
85d419c88555 doc updates
adb014
parents: 2539
diff changeset
76 if test ! -e "$(@:.html=_toc.html)"; then \
2539
5e5735d78c9a Documentation updates
adb014
parents: 2397
diff changeset
77 if test ! -e "fixed/$@"; then \
5e5735d78c9a Documentation updates
adb014
parents: 2397
diff changeset
78 $(INSTALL_DATA) fixed/$(@:.html=_toc.html) fixed/$@ ; \
5e5735d78c9a Documentation updates
adb014
parents: 2397
diff changeset
79 fi; \
5e5735d78c9a Documentation updates
adb014
parents: 2397
diff changeset
80 $(LN_S) $@ fixed/index.html; \
2543
85d419c88555 doc updates
adb014
parents: 2539
diff changeset
81 mv fixed html; \
85d419c88555 doc updates
adb014
parents: 2539
diff changeset
82 $(INSTALL_DATA) *.png html; \
2539
5e5735d78c9a Documentation updates
adb014
parents: 2397
diff changeset
83 else \
5e5735d78c9a Documentation updates
adb014
parents: 2397
diff changeset
84 if test ! -e "$@"; then \
5e5735d78c9a Documentation updates
adb014
parents: 2397
diff changeset
85 $(INSTALL_DATA) $(@:.html=_toc.html) $@ ; \
5e5735d78c9a Documentation updates
adb014
parents: 2397
diff changeset
86 fi; \
2543
85d419c88555 doc updates
adb014
parents: 2539
diff changeset
87 if [ ! -e "html/" ]; then \
85d419c88555 doc updates
adb014
parents: 2539
diff changeset
88 mkdir html; \
85d419c88555 doc updates
adb014
parents: 2539
diff changeset
89 fi; \
85d419c88555 doc updates
adb014
parents: 2539
diff changeset
90 $(INSTALL_DATA) *.png *.html html; \
85d419c88555 doc updates
adb014
parents: 2539
diff changeset
91 $(LN_S) $@ html/index.html; \
1403
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
92 fi \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
93 fi
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
94
4774
67c1ef5699d5 Make sure that the derived texinfo files are kept so that they can be included in the package
adb014
parents: 4636
diff changeset
95 .PRECIOUS: %.texi
1403
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
96 %.texi : %.txi $(FIXEDVERTARGET)
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
97 @echo "Making texinfo $@"; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
98 $(RM) -f $(DOCSTRINGS); \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
99 $(MKDOC) ../ > $(DOCSTRINGS); \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
100 $(MKTEXI) $< $(DOCSTRINGS) $(INDEX) > $@ ; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
101 $(RM) -f $(DOCSTRINGS);
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
102
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
103 clean:
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
104 @echo "Cleaning..."; \
2539
5e5735d78c9a Documentation updates
adb014
parents: 2397
diff changeset
105 $(RM) -fr $(DELETES)
1403
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
106
1520
074cb2c6d7a0 Allow dist, distclean and clean targets to run without Makeconf. Replace include with sinclude in Makefiles. Build fixed and comm docs as part of dist target
adb014
parents: 1508
diff changeset
107 dist: all
074cb2c6d7a0 Allow dist, distclean and clean targets to run without Makeconf. Replace include with sinclude in Makefiles. Build fixed and comm docs as part of dist target
adb014
parents: 1508
diff changeset
108
1403
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
109 count:
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
110 wc *.txi
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
111