Mercurial > octave-dspies
view doc/interpreter/Makefile.in @ 5705:0a26811c98be
[project @ 2006-03-21 22:17:34 by jwe]
author | jwe |
---|---|
date | Tue, 21 Mar 2006 22:17:34 +0000 |
parents | 3d8d8ce93c2c |
children | 5b9b492f9e98 |
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 STAMPS = stamp-png stamp-eps stamp-pdf stamp-txt 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]* \ octave.html octave_*.html MAN_BASE := mkoctfile octave octave-bug octave-config MAN_SRC := $(addsuffix .1, $(MAN_BASE)) # XXX FIXME XXX -- need to include generated figures here... DISTFILES = Makefile.in dir munge-texi.cc $(MAN_SRC) \ $(SOURCES) $(TEXINFO) $(FORMATTED) # 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 $@ octave.info: stamp-txt $(TEXINFO) -$(MAKEINFO) -I.. -I$(srcdir) -I$(srcdir)/.. $(MAIN_TEXINFO) octave.dvi: stamp-eps $(TEXINFO) -TEXINPUTS="..:$(srcdir):$(srcdir)/..:$(TEXINPUTS):" $(TEXI2DVI) $(MAIN_TEXINFO) octave.ps: octave.dvi -dvips -o $@ $< octave.pdf: stamp-pdf $(TEXINFO) -TEXINPUTS="..:$(srcdir):$(srcdir)/..:$(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: stamp-png $(TEXINFO) -$(MAKEINFO) --html --ifinfo --output=HTML -I.. -I$(srcdir)/.. $(MAIN_TEXINFO) ## $(INSTALL_DATA) *.png ./HTML check: all .PHONY: check stamp-png: ## make -C $(IMAGEDIR) png touch $@ stamp-eps: ## make -C $(IMAGEDIR) eps touch $@ stamp-pdf: real-pdf touch $@ real-pdf: stamp-eps ## for F in $(wildcard *.eps); do \ ## G=`basename $$F .eps`.pdf; \ ## gs -dBATCH -dEPSCrop -dNOPAUSE -q -sDEVICE=pdfwrite \ ## -sOutputFile=$$G $$F; \ ## done stamp-txt: ## make -C $(IMAGEDIR) txt touch $@ install install-strip: all $(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: 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: 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 $(STAMPS) \ *.eps *.png *.txt *.pdf .PHONY: mostlyclean clean distclean: clean rm -f Makefile .PHONY: distclean maintainer-clean: distclean clean-texi rm -f 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 .PHONY: dist