annotate main/fixed/doc/Makefile @ 1508:25859a342fe5 octave-forge

Store ps and texinfo docs so that they don't generally need to be rebuilt
author adb014
date Tue, 06 Jul 2004 09:49:46 +0000
parents ebe3b1d4b24d
children 074cb2c6d7a0
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
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
3 FIXEDVERTARGET = fixedversion.txi
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
4 INFODOC = fixed.info
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
5 PSDOC = fixed.ps
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
6 DOCS = $(INFODOC) $(PSDOC)
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
7 DOCSTRINGS = DOCSTRINGS
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
8 INDEX = ../INDEX
1508
25859a342fe5 Store ps and texinfo docs so that they don't generally need to be rebuilt
adb014
parents: 1403
diff changeset
9 TMPDELETES = *.log *.dvi $(DOCSTRINGS) $(FIXEDVERTARGET) fixed.texi *~
25859a342fe5 Store ps and texinfo docs so that they don't generally need to be rebuilt
adb014
parents: 1403
diff changeset
10 DELETES = *.ps *.pdf *.info $(DOCS) *.html
1403
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
11
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
12 all : $(INFODOC) $(PSDOC)
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
13
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
14 ifndef OCTAVE_FORGE
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
15 install :
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
16 @echo "Where exactly do you want me to install to!!!"
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
17 else
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
18 install :
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
19 @$(INSTALL) -d $(MPATH)/fixed; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
20 if test "x$(MAKEINFO)" != "x"; then \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
21 $(INSTALL_DATA) $(INFODOC) $(MPATH)/fixed ; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
22 fi
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
23 endif
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
24
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
25 $(FIXEDVERTARGET) :
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
26 @echo "Creating $@"; $(RM) -f $@; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
27 echo "@set VERSION $(OCTAVEFIXEDVERSION)" > $@
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
28
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
29 %.dvi : %.texi
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
30 @if test "x$(TEXI2DVI)" != "x"; then \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
31 echo "Making dvi $@"; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
32 TEXINPUTS="./:$../../..:$(TEXINPUTS):"; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
33 export TEXINPUTS; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
34 $(TEXI2DVI) $< ; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
35 fi
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
36
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
37 %.ps : %.dvi
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
38 @if test "x$(TEXI2DVI)" != "x" && test "x$(DVIPS)" != "x"; then \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
39 echo "Making postscript $@"; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
40 $(DVIPS) -o $@ $< ; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
41 fi
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
42
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
43 %.pdf : %.dvi
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
44 @if test "x$(TEXI2DVI)" != "x" && test "x$(DVIPDF)" != "x"; then \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
45 echo "Making pdf $@"; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
46 $(DVIPDF) $< $@ ; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
47 fi
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
48
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
49 %.info : %.texi
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
50 @if test "x$(MAKEINFO)" != "x"; then \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
51 echo "Making info $@"; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
52 $(MAKEINFO) -I./ -I../../../ $< ; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
53 fi
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
54
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
55 # Need a stupid copy of the TOC for older texi2html versions
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
56 %.html : %.texi
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
57 @if test "x$(TEXI2HTML)" != "x"; then \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
58 echo "Making html $@"; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
59 $(TEXI2HTML) -I . -I ../../.. -expandinfo $< ; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
60 if test ! -e "$@"; then \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
61 $(INSTALL_DATA) -f $(@:.html=_toc.html) $@ ; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
62 fi \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
63 fi
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
64
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
65 %.texi : %.txi $(FIXEDVERTARGET)
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
66 @echo "Making texinfo $@"; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
67 $(RM) -f $(DOCSTRINGS); \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
68 $(MKDOC) ../ > $(DOCSTRINGS); \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
69 $(MKTEXI) $< $(DOCSTRINGS) $(INDEX) > $@ ; \
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
70 $(RM) -f $(DOCSTRINGS);
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
71
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
72 clean:
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
73 @echo "Cleaning..."; \
1508
25859a342fe5 Store ps and texinfo docs so that they don't generally need to be rebuilt
adb014
parents: 1403
diff changeset
74 $(RM) -f $(TMPDELETES)
25859a342fe5 Store ps and texinfo docs so that they don't generally need to be rebuilt
adb014
parents: 1403
diff changeset
75
25859a342fe5 Store ps and texinfo docs so that they don't generally need to be rebuilt
adb014
parents: 1403
diff changeset
76 realclean: clean
25859a342fe5 Store ps and texinfo docs so that they don't generally need to be rebuilt
adb014
parents: 1403
diff changeset
77 @$(RM) -f $(DELETES)
1403
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
78
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
79 count:
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
80 wc *.txi
ebe3b1d4b24d Initial commit of fixed-point toolbox
adb014
parents:
diff changeset
81