[53b1fd]: doc / Makefile  Maximize  Restore  History

Download this file

112 lines (96 with data), 2.8 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
sinclude ../../../Makeconf
# Fill in the variables as it makes testing the package manager easier
ifeq ($(MKDOC),)
MKDOC = ../../../admin/mkdoc
MKTEXI = ../../../admin/mktexi
MAKEINFO = makeinfo --no-split
TEXI2PDF = texi2pdf --clean
DVIPS = dvips
LN_S = ln -s
endif
FIXEDVERTARGET = fixedversion.txi
INFODOC = fixed.info
PSDOC = $(patsubst %.info,%.ps,$(INFODOC))
PDFDOC = $(patsubst %.info,%.pdf,$(INFODOC))
HTMLDOC = $(patsubst %.info,%.html,$(INFODOC))
TEXIDOC = $(patsubst %.info,%.texi,$(INFODOC))
DOCS = $(INFODOC) $(PDFDOC)
DOCSTRINGS = DOCSTRINGS
INDEX = ../INDEX
TMPDELETES = *.log *.dvi $(DOCSTRINGS) $(FIXEDVERTARGET) $(TEXIDOC) *~
DELETES = $(TMPDELETES) *.ps *.texi *.info $(DOCS) *.html fixed/ html/
all : $(PDFDOC) $(HTMLDOC) ../inst/doc.info
../inst/doc.info : $(INFODOC)
cp -f $(INFODOC) ../inst/doc.info
$(FIXEDVERTARGET) :
@echo "Creating $@"; $(RM) -f $@; \
echo "@set VERSION $(OCTAVEFIXEDVERSION)" > $@
%.dvi : %.texi
@if test "x$(TEXI2DVI)" != "x"; then \
echo "Making dvi $@"; \
TEXINPUTS="./:../../..:$(TEXINPUTS):"; \
export TEXINPUTS; \
$(TEXI2DVI) $< ; \
fi
%.ps : %.dvi
@if test "x$(TEXI2DVI)" != "x" && test "x$(DVIPS)" != "x"; then \
echo "Making postscript $@"; \
$(DVIPS) -o $@ $< ; \
fi
ifeq (,$(TEXI2PDF))
%.pdf : %.dvi
@if test "x$(TEXI2DVI)" != "x" && test "x$(DVIPDF)" != "x"; then \
echo "Making pdf $@"; \
$(DVIPDF) $< ; \
fi
else
%.pdf : %.texi
@if test "x$(TEXI2PDF)" != "x"; then \
echo "Making pdf $@"; \
TEXINPUTS="./:../../..:$(TEXINPUTS):"; \
export TEXINPUTS; \
$(TEXI2PDF) $< ; \
fi
endif
%.info : %.texi
@if test "x$(MAKEINFO)" != "x"; then \
echo "Making info $@"; \
$(MAKEINFO) -I./ -I../../../ $< ; \
fi
# Need a stupid copy of the TOC for older texi2html versions
# Newer texi2html place documentation in a sub-directory
%.html : %.texi
@if test "x$(TEXI2HTML)" != "x"; then \
echo "Making html $@"; \
$(TEXI2HTML) -I . -I ../../.. -iftex --subdir=./ -expandinfo $< ; \
if test ! -e "$(@:.html=_toc.html)"; then \
if test ! -e "fixed/$@"; then \
$(INSTALL_DATA) fixed/$(@:.html=_toc.html) fixed/$@ ; \
fi; \
$(LN_S) $@ fixed/index.html; \
mv fixed html; \
$(INSTALL_DATA) *.png html; \
else \
if test ! -e "$@"; then \
$(INSTALL_DATA) $(@:.html=_toc.html) $@ ; \
fi; \
if [ ! -e "html/" ]; then \
mkdir html; \
fi; \
$(INSTALL_DATA) *.png *.html html; \
$(LN_S) $@ html/index.html; \
fi \
fi
.PRECIOUS: %.texi
%.texi : %.txi $(FIXEDVERTARGET)
@echo "Making texinfo $@"; \
$(RM) -f $(DOCSTRINGS); \
$(MKDOC) ../ > $(DOCSTRINGS); \
$(MKTEXI) $< $(DOCSTRINGS) $(INDEX) > $@ ; \
$(RM) -f $(DOCSTRINGS);
clean:
@echo "Cleaning..."; \
$(RM) -fr $(DELETES)
dist: all
count:
wc *.txi

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks