annotate main/fixed/doc/Makefile @ 2558:d5a7f97cc2f6 octave-forge

Latest mega package manager update
author adb014
date Mon, 02 Oct 2006 19:47:38 +0000
parents 85d419c88555
children dd09505fb29a
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
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
8 TEXI2DVI = texi2dvi --clean
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) *~
2543
85d419c88555 doc updates
adb014
parents: 2539
diff changeset
23 DELETES = $(TMPDELETES) *.ps *.pdf *.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 $@"; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
37 TEXINPUTS="./:$../../..:$(TEXINPUTS):"; \
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
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
48 %.pdf : %.dvi
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
49 @if test "x$(TEXI2DVI)" != "x" && test "x$(DVIPDF)" != "x"; then \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
50 echo "Making pdf $@"; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
51 $(DVIPDF) $< $@ ; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
52 fi
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
53
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
54 %.info : %.texi
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
55 @if test "x$(MAKEINFO)" != "x"; then \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
56 echo "Making info $@"; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
57 $(MAKEINFO) -I./ -I../../../ $< ; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
58 fi
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
59
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
60 # Need a stupid copy of the TOC for older texi2html versions
2539
5e5735d78c9a Documentation updates
adb014
parents: 2397
diff changeset
61 # Newer texi2html place documentation in a sub-directory
1403
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
62 %.html : %.texi
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
63 @if test "x$(TEXI2HTML)" != "x"; then \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
64 echo "Making html $@"; \
2558
d5a7f97cc2f6 Latest mega package manager update
adb014
parents: 2543
diff changeset
65 $(TEXI2HTML) -I . -I ../../.. -iftex --subdir=./ -expandinfo $< ; \
2543
85d419c88555 doc updates
adb014
parents: 2539
diff changeset
66 if test ! -e "$(@:.html=_toc.html)"; then \
2539
5e5735d78c9a Documentation updates
adb014
parents: 2397
diff changeset
67 if test ! -e "fixed/$@"; then \
5e5735d78c9a Documentation updates
adb014
parents: 2397
diff changeset
68 $(INSTALL_DATA) fixed/$(@:.html=_toc.html) fixed/$@ ; \
5e5735d78c9a Documentation updates
adb014
parents: 2397
diff changeset
69 fi; \
5e5735d78c9a Documentation updates
adb014
parents: 2397
diff changeset
70 $(LN_S) $@ fixed/index.html; \
2543
85d419c88555 doc updates
adb014
parents: 2539
diff changeset
71 mv fixed html; \
85d419c88555 doc updates
adb014
parents: 2539
diff changeset
72 $(INSTALL_DATA) *.png html; \
2539
5e5735d78c9a Documentation updates
adb014
parents: 2397
diff changeset
73 else \
5e5735d78c9a Documentation updates
adb014
parents: 2397
diff changeset
74 if test ! -e "$@"; then \
5e5735d78c9a Documentation updates
adb014
parents: 2397
diff changeset
75 $(INSTALL_DATA) $(@:.html=_toc.html) $@ ; \
5e5735d78c9a Documentation updates
adb014
parents: 2397
diff changeset
76 fi; \
2543
85d419c88555 doc updates
adb014
parents: 2539
diff changeset
77 if [ ! -e "html/" ]; then \
85d419c88555 doc updates
adb014
parents: 2539
diff changeset
78 mkdir html; \
85d419c88555 doc updates
adb014
parents: 2539
diff changeset
79 fi; \
85d419c88555 doc updates
adb014
parents: 2539
diff changeset
80 $(INSTALL_DATA) *.png *.html html; \
85d419c88555 doc updates
adb014
parents: 2539
diff changeset
81 $(LN_S) $@ html/index.html; \
1403
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
82 fi \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
83 fi
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
84
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
85 %.texi : %.txi $(FIXEDVERTARGET)
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
86 @echo "Making texinfo $@"; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
87 $(RM) -f $(DOCSTRINGS); \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
88 $(MKDOC) ../ > $(DOCSTRINGS); \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
89 $(MKTEXI) $< $(DOCSTRINGS) $(INDEX) > $@ ; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
90 $(RM) -f $(DOCSTRINGS);
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
91
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
92 clean:
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
93 @echo "Cleaning..."; \
2539
5e5735d78c9a Documentation updates
adb014
parents: 2397
diff changeset
94 $(RM) -fr $(DELETES)
1403
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
95
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
96 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
97
1403
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
98 count:
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
99 wc *.txi
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
100