Mercurial > hg > octave-jordi
view doc/interpreter/Makefile.in @ 5866:f9ac7ebf0e19
[project @ 2006-06-28 16:05:22 by jwe]
author | jwe |
---|---|
date | Wed, 28 Jun 2006 16:05:24 +0000 |
parents | b2a802aa0cda |
children | d45cb743ff2e |
line wrap: on
line source
# # Makefile for octave's doc/interpreter directory # # John W. Eaton # jwe@bevo.che.wisc.edu # University of Wisconsin-Madison # Department of Chemical Engineering TOPDIR = ../.. srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ include $(TOPDIR)/Makeconf INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_DATA = @INSTALL_DATA@ IMAGEDIR = images SUB_SOURCE := arith.txi audio.txi basics.txi bugs.txi \ container.txi control.txi cp-idx.txi data.txi \ debug.txi diffeq.txi emacs.txi errors.txi eval.txi \ expr.txi finance.txi fn-idx.txi func.txi gpl.txi \ grammar.txi image.txi install.txi intro.txi io.txi \ linalg.txi matrix.txi nonlin.txi numbers.txi \ op-idx.txi optim.txi plot.txi poly.txi preface.txi \ quad.txi quaternion.txi set.txi signal.txi sparse.txi stats.txi \ stmt.txi stream.txi strings.txi struct.txi system.txi \ testfun.txi tips.txi var.txi vr-idx.txi SOURCES := $(SUB_SOURCE) MAIN_TEXINFO := $(srcdir)/octave.texi SUB_TEXINFO := $(SUB_SOURCE:.txi=.texi) TEXINFO := $(MAIN_TEXINFO) $(SUB_TEXINFO) ../conf.texi FORMATTED = octave.dvi octave.ps octave.pdf \ octave.info octave.info-[0-9]* MAN_BASE := mkoctfile octave octave-bug octave-config MAN_SRC := $(addsuffix .1, $(MAN_BASE)) # FIXME -- need to include generated figures here... DISTFILES = Makefile.in dir munge-texi.cc $(MAN_SRC) \ $(SOURCES) $(TEXINFO) $(FORMATTED) DISTDIRS = HTML DISTSUBDIRS = $(IMAGEDIR) SUBDIRS := $(IMAGEDIR) # Look for version.h to get version information. xfiles := $(TOPDIR)/src/version.h $(srcdir)/$(TOPDIR)/src/version.h version_file := $(firstword $(foreach file, $(xfiles), $(wildcard $(file)))) SPELL = $(patsubst %.texi, %.spell, $(TEXINFO)) %.spell : %.texi rm -f $@ $(SED) -e 's/@@/ at /g' -e 's/@[a-zA-Z]*//g' $< | spell > $@.tmp mv $@.tmp $@ all: octave.info octave.dvi octave.ps octave.pdf HTML/index.html .PHONY: all $(TEXINFO): src-DOCSTRINGS scripts-DOCSTRINGS munge-texi$(BUILD_EXEEXT) munge-texi$(BUILD_EXEEXT): munge-texi.cc $(BUILD_CXX) $(BUILD_CXXFLAGS) -o $@ $^ $(BUILD_LDFLAGS) src-DOCSTRINGS: $(MAKE) -C ../../src DOCSTRINGS .PHONY: src-DOCSTRINGS scripts-DOCSTRINGS: $(MAKE) -C ../../scripts DOCSTRINGS .PHONY: scripts-DOCSTRINGS %.texi : %.txi @echo making $@ from $< @./munge-texi \ -d $(TOPDIR)/src/DOCSTRINGS \ -d $(TOPDIR)/scripts/DOCSTRINGS < $< > $@.t @$(top_srcdir)/move-if-change $@.t $@ stamp-images: $(MAKE) -C images .PHONY: stamp-images octave.info: stamp-images $(TEXINFO) -$(MAKEINFO) -I.. -I$(srcdir) -I$(srcdir)/.. -I$(IMAGEDIR) $(MAIN_TEXINFO) octave.dvi: stamp-images $(TEXINFO) -TEXINPUTS="..:$(srcdir):$(srcdir)/..:$(IMAGEDIR):$(TEXINPUTS):" $(TEXI2DVI) $(MAIN_TEXINFO) octave.ps: octave.dvi -dvips -o $@ $< octave.pdf: stamp-images $(TEXINFO) -TEXINPUTS="..:$(srcdir):$(srcdir)/..:$(IMAGEDIR):$(TEXINPUTS):" $(TEXI2PDF) $(MAIN_TEXINFO) ../../INSTALL.OCTAVE: install.texi rm -f INSTALL -$(MAKEINFO) -D INSTALLONLY \ --no-validate --no-headers --no-split --output INSTALL \ -I.. -I$(srcdir) -I$(srcdir)/.. $< mv INSTALL ../../INSTALL.OCTAVE ../../BUGS: bugs.texi rm -f BUGS -$(MAKEINFO) -D BUGSONLY \ --no-validate --no-headers --no-split --output BUGS \ -I.. -I$(srcdir) -I$(srcdir)/.. $< mv BUGS ../../BUGS HTML/index.html: html-figs $(TEXINFO) -$(MAKEINFO) --html --ifinfo --output=HTML -I.. -I$(srcdir) -I$(srcdir)/.. -I$(IMAGEDIR) $(MAIN_TEXINFO) html-figs: stamp-images html-dir $(INSTALL_DATA) images/*.png HTML .PHONY: html-figs html-dir: if [ -d HTML ]; then true; else mkdir HTML; fi check: all .PHONY: check install install-strip: all @$(subdir-for-command) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(man1dir) $(DESTDIR)$(infodir) @if test -d $(DESTDIR)$(man1dir); then \ for f in $(MAN_BASE); do \ rm -f $(DESTDIR)$(man1dir)/$$f$(man1ext); \ echo "installing $(srcdir)/$$f.1 in $(DESTDIR)$(man1dir)"; \ $(INSTALL_DATA) $(srcdir)/$$f.1 $(DESTDIR)$(man1dir)/$$f$(man1ext); \ done ; \ fi @if test -d $(DESTDIR)$(infodir); then \ rm -f $(DESTDIR)$(infodir)/octave.info*; \ echo "installing info files in $(DESTDIR)$(infodir)"; \ if test -f octave.info; then \ for f in octave.info*; do \ $(INSTALL_DATA) $$f $(DESTDIR)$(infodir)/$$f; \ done; \ else \ for f in $(srcdir)/octave.info*; do \ $(INSTALL_DATA) $$f $(DESTDIR)$(infodir)/`basename $$f`; \ done; \ fi; \ if test -f $(DESTDIR)$(infodir)/dir; then \ if grep "^\* Octave: (octave)." $(DESTDIR)$(infodir)/dir > /dev/null; then \ true; \ else \ echo ""; \ echo "You should add the following entry"; \ echo ""; \ echo "* Octave: (octave)."; \ echo " Interactive language for numerical computations."; \ echo ""; \ echo "to $(DESTDIR)$(infodir)/dir."; \ echo ""; \ fi; \ else \ echo "installing $(srcdir)/dir in $(DESTDIR)$(infodir)"; \ $(INSTALL_DATA) $(srcdir)/dir $(DESTDIR)$(infodir)/dir; \ fi; \ fi .PHONY: install install-strip uninstall: @$(subdir-for-command) rm -f $(infodir)/octave.info* for f in $(MAN_BASE); do rm -f $(DESTDIR)$(man1dir)/$$f$(man1ext); done .PHONY: uninstall tags: $(SOURCES) ctags $(SOURCES) TAGS: $(SOURCES) etags $(SOURCES) spell: $(SPELL) .PHONY: spell mostlyclean clean: @$(subdir-for-command) rm -f octave.cp octave.fn octave.in \ octave.ky octave.op octave.pg octave.rd octave.tp octave.vr \ octave.cps octave.fns octave.ins octave.kys octave.ops \ octave.pgs octave.rds octave.tps octave.vrs octave.aux \ octave.log octave.toc \ munge-texi$(BUILD_EXEEXT) munge-texi.o .PHONY: mostlyclean clean distclean: clean @$(subdir-for-command) rm -f Makefile .PHONY: distclean maintainer-clean: clean-texi rm -f Makefile tags TAGS $(FORMATTED) rm -rf HTML .PHONY: maintainer-clean clean-texi: rm -f $(SUB_TEXINFO) .PHONY: clean-texi dist: clean-texi all ln $(DISTFILES) ../../`cat ../../.fname`/doc/interpreter for dir in $(DISTDIRS); do ln -s ../../../doc/interpreter/$$dir ../../`cat ../../.fname`/doc/interpreter/$$dir; done for dir in $(DISTSUBDIRS); do mkdir ../../`cat ../../.fname`/doc/interpreter/$$dir; $(MAKE) -C $$dir $@; done .PHONY: dist