Mercurial > forge
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 |
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 |
9481 | 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 | 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) *~ |
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 | 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 $@"; \ | |
4636 | 37 TEXINPUTS="./:../../..:$(TEXINPUTS):"; \ |
1403 | 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 | |
4636 | 48 ifeq (,$(TEXI2PDF)) |
1403 | 49 %.pdf : %.dvi |
50 @if test "x$(TEXI2DVI)" != "x" && test "x$(DVIPDF)" != "x"; then \ | |
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 | 53 fi |
4636 | 54 else |
55 %.pdf : %.texi | |
56 @if test "x$(TEXI2PDF)" != "x"; then \ | |
57 echo "Making pdf $@"; \ | |
58 TEXINPUTS="./:../../..:$(TEXINPUTS):"; \ | |
59 export TEXINPUTS; \ | |
60 $(TEXI2PDF) $< ; \ | |
61 fi | |
62 endif | |
1403 | 63 |
64 %.info : %.texi | |
65 @if test "x$(MAKEINFO)" != "x"; then \ | |
66 echo "Making info $@"; \ | |
67 $(MAKEINFO) -I./ -I../../../ $< ; \ | |
68 fi | |
69 | |
70 # Need a stupid copy of the TOC for older texi2html versions | |
2539 | 71 # Newer texi2html place documentation in a sub-directory |
1403 | 72 %.html : %.texi |
73 @if test "x$(TEXI2HTML)" != "x"; then \ | |
74 echo "Making html $@"; \ | |
2558 | 75 $(TEXI2HTML) -I . -I ../../.. -iftex --subdir=./ -expandinfo $< ; \ |
2543 | 76 if test ! -e "$(@:.html=_toc.html)"; then \ |
2539 | 77 if test ! -e "fixed/$@"; then \ |
78 $(INSTALL_DATA) fixed/$(@:.html=_toc.html) fixed/$@ ; \ | |
79 fi; \ | |
80 $(LN_S) $@ fixed/index.html; \ | |
2543 | 81 mv fixed html; \ |
82 $(INSTALL_DATA) *.png html; \ | |
2539 | 83 else \ |
84 if test ! -e "$@"; then \ | |
85 $(INSTALL_DATA) $(@:.html=_toc.html) $@ ; \ | |
86 fi; \ | |
2543 | 87 if [ ! -e "html/" ]; then \ |
88 mkdir html; \ | |
89 fi; \ | |
90 $(INSTALL_DATA) *.png *.html html; \ | |
91 $(LN_S) $@ html/index.html; \ | |
1403 | 92 fi \ |
93 fi | |
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 | 96 %.texi : %.txi $(FIXEDVERTARGET) |
97 @echo "Making texinfo $@"; \ | |
98 $(RM) -f $(DOCSTRINGS); \ | |
99 $(MKDOC) ../ > $(DOCSTRINGS); \ | |
100 $(MKTEXI) $< $(DOCSTRINGS) $(INDEX) > $@ ; \ | |
101 $(RM) -f $(DOCSTRINGS); | |
102 | |
103 clean: | |
104 @echo "Cleaning..."; \ | |
2539 | 105 $(RM) -fr $(DELETES) |
1403 | 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 | 109 count: |
110 wc *.txi | |
111 |