Mercurial > forge
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 |
rev | line source |
---|---|
1403 | 1 sinclude ../../../Makeconf |
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 | 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 | 13 FIXEDVERTARGET = fixedversion.txi |
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 | 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 | 20 DOCSTRINGS = DOCSTRINGS |
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 | 23 DELETES = $(TMPDELETES) *.ps *.pdf *.info $(DOCS) *.html fixed/ html/ |
1403 | 24 |
2558 | 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 | 29 |
30 $(FIXEDVERTARGET) : | |
31 @echo "Creating $@"; $(RM) -f $@; \ | |
32 echo "@set VERSION $(OCTAVEFIXEDVERSION)" > $@ | |
33 | |
34 %.dvi : %.texi | |
35 @if test "x$(TEXI2DVI)" != "x"; then \ | |
36 echo "Making dvi $@"; \ | |
37 TEXINPUTS="./:$../../..:$(TEXINPUTS):"; \ | |
38 export TEXINPUTS; \ | |
39 $(TEXI2DVI) $< ; \ | |
40 fi | |
41 | |
42 %.ps : %.dvi | |
43 @if test "x$(TEXI2DVI)" != "x" && test "x$(DVIPS)" != "x"; then \ | |
44 echo "Making postscript $@"; \ | |
45 $(DVIPS) -o $@ $< ; \ | |
46 fi | |
47 | |
48 %.pdf : %.dvi | |
49 @if test "x$(TEXI2DVI)" != "x" && test "x$(DVIPDF)" != "x"; then \ | |
50 echo "Making pdf $@"; \ | |
51 $(DVIPDF) $< $@ ; \ | |
52 fi | |
53 | |
54 %.info : %.texi | |
55 @if test "x$(MAKEINFO)" != "x"; then \ | |
56 echo "Making info $@"; \ | |
57 $(MAKEINFO) -I./ -I../../../ $< ; \ | |
58 fi | |
59 | |
60 # Need a stupid copy of the TOC for older texi2html versions | |
2539 | 61 # Newer texi2html place documentation in a sub-directory |
1403 | 62 %.html : %.texi |
63 @if test "x$(TEXI2HTML)" != "x"; then \ | |
64 echo "Making html $@"; \ | |
2558 | 65 $(TEXI2HTML) -I . -I ../../.. -iftex --subdir=./ -expandinfo $< ; \ |
2543 | 66 if test ! -e "$(@:.html=_toc.html)"; then \ |
2539 | 67 if test ! -e "fixed/$@"; then \ |
68 $(INSTALL_DATA) fixed/$(@:.html=_toc.html) fixed/$@ ; \ | |
69 fi; \ | |
70 $(LN_S) $@ fixed/index.html; \ | |
2543 | 71 mv fixed html; \ |
72 $(INSTALL_DATA) *.png html; \ | |
2539 | 73 else \ |
74 if test ! -e "$@"; then \ | |
75 $(INSTALL_DATA) $(@:.html=_toc.html) $@ ; \ | |
76 fi; \ | |
2543 | 77 if [ ! -e "html/" ]; then \ |
78 mkdir html; \ | |
79 fi; \ | |
80 $(INSTALL_DATA) *.png *.html html; \ | |
81 $(LN_S) $@ html/index.html; \ | |
1403 | 82 fi \ |
83 fi | |
84 | |
85 %.texi : %.txi $(FIXEDVERTARGET) | |
86 @echo "Making texinfo $@"; \ | |
87 $(RM) -f $(DOCSTRINGS); \ | |
88 $(MKDOC) ../ > $(DOCSTRINGS); \ | |
89 $(MKTEXI) $< $(DOCSTRINGS) $(INDEX) > $@ ; \ | |
90 $(RM) -f $(DOCSTRINGS); | |
91 | |
92 clean: | |
93 @echo "Cleaning..."; \ | |
2539 | 94 $(RM) -fr $(DELETES) |
1403 | 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 | 98 count: |
99 wc *.txi | |
100 |