Mercurial > forge
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 |
rev | line source |
---|---|
1403 | 1 sinclude ../../../Makeconf |
2 | |
3 FIXEDVERTARGET = fixedversion.txi | |
4 INFODOC = fixed.info | |
5 PSDOC = fixed.ps | |
6 DOCS = $(INFODOC) $(PSDOC) | |
7 DOCSTRINGS = DOCSTRINGS | |
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 | 11 |
12 all : $(INFODOC) $(PSDOC) | |
13 | |
14 ifndef OCTAVE_FORGE | |
15 install : | |
16 @echo "Where exactly do you want me to install to!!!" | |
17 else | |
18 install : | |
19 @$(INSTALL) -d $(MPATH)/fixed; \ | |
20 if test "x$(MAKEINFO)" != "x"; then \ | |
21 $(INSTALL_DATA) $(INFODOC) $(MPATH)/fixed ; \ | |
22 fi | |
23 endif | |
24 | |
25 $(FIXEDVERTARGET) : | |
26 @echo "Creating $@"; $(RM) -f $@; \ | |
27 echo "@set VERSION $(OCTAVEFIXEDVERSION)" > $@ | |
28 | |
29 %.dvi : %.texi | |
30 @if test "x$(TEXI2DVI)" != "x"; then \ | |
31 echo "Making dvi $@"; \ | |
32 TEXINPUTS="./:$../../..:$(TEXINPUTS):"; \ | |
33 export TEXINPUTS; \ | |
34 $(TEXI2DVI) $< ; \ | |
35 fi | |
36 | |
37 %.ps : %.dvi | |
38 @if test "x$(TEXI2DVI)" != "x" && test "x$(DVIPS)" != "x"; then \ | |
39 echo "Making postscript $@"; \ | |
40 $(DVIPS) -o $@ $< ; \ | |
41 fi | |
42 | |
43 %.pdf : %.dvi | |
44 @if test "x$(TEXI2DVI)" != "x" && test "x$(DVIPDF)" != "x"; then \ | |
45 echo "Making pdf $@"; \ | |
46 $(DVIPDF) $< $@ ; \ | |
47 fi | |
48 | |
49 %.info : %.texi | |
50 @if test "x$(MAKEINFO)" != "x"; then \ | |
51 echo "Making info $@"; \ | |
52 $(MAKEINFO) -I./ -I../../../ $< ; \ | |
53 fi | |
54 | |
55 # Need a stupid copy of the TOC for older texi2html versions | |
56 %.html : %.texi | |
57 @if test "x$(TEXI2HTML)" != "x"; then \ | |
58 echo "Making html $@"; \ | |
59 $(TEXI2HTML) -I . -I ../../.. -expandinfo $< ; \ | |
60 if test ! -e "$@"; then \ | |
61 $(INSTALL_DATA) -f $(@:.html=_toc.html) $@ ; \ | |
62 fi \ | |
63 fi | |
64 | |
65 %.texi : %.txi $(FIXEDVERTARGET) | |
66 @echo "Making texinfo $@"; \ | |
67 $(RM) -f $(DOCSTRINGS); \ | |
68 $(MKDOC) ../ > $(DOCSTRINGS); \ | |
69 $(MKTEXI) $< $(DOCSTRINGS) $(INDEX) > $@ ; \ | |
70 $(RM) -f $(DOCSTRINGS); | |
71 | |
72 clean: | |
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 | 78 |
79 count: | |
80 wc *.txi | |
81 |