view doc/interpreter/Makefile.in @ 2028:046d83c6f0af

[project @ 1996-03-23 11:01:15 by jwe]
author jwe
date Sat, 23 Mar 1996 11:03:39 +0000
parents aa68db31dc34
children a2e240d3f336
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@

SOURCES =

TEXINFO = amuse.texi arith.texi bugs.texi bugs1.texi control.texi \
	cp-idx.texi diffeq.texi expr.texi extend.texi fn-idx.texi \
	func.texi gnuinfo.texi help.texi history.texi \
	hsuser.texi image.texi in-idx.texi install.texi install1.texi \
	intro.texi invoke.texi io.texi linalg.texi matrix.texi \
	nonlin.texi octave.texi op-idx.texi optim.texi plot.texi \
	poly.texi preface.texi program.texi quad.texi rd-idx.texi \
	rluser.texi set.texi signal.texi special.texi stats.texi \
	stmt.texi strings.texi system.texi var.texi vr-idx.texi

FORMATTED =  octave.dvi octave.ps octave.info octave.info-[0-9]*

DISTFILES = Makefile.in dir octave.1 conf.texi gpl.texi \
	$(TEXINFO) $(FORMATTED)

SPELL = $(patsubst %.texi, %.spell, $(ALL_TEXINFO))

%.spell : %.texi
	rm -f $@
	sed -e 's/@@/ at /g' -e 's/@[a-zA-Z]*//g' $< | spell > $@.tmp
	mv $@.tmp $@

all: conf.texi octave.info octave.dvi octave.ps
.PHONY: all

# This mess is supposed to prevent us from making info files
# unnecessarily when building Octave in a subdirectory.

conf.texi: $(srcdir)/../../src/version.h ../../Makeconf Makefile \
	$(srcdir)/../conf.texi.in
	@echo "Making conf.texi from conf.texi.in..."
	@(version_val=${version}; \
	sed < $(srcdir)/../conf.texi.in > conf.texi.tmp \
	-e "s;%OCTAVE_VERSION%;$$version_val;" \
	-e "s;%OCTAVE_HOME%;${prefix};")
	@if test "$(srcdir)" = "." ; then \
	  $(top_srcdir)/move-if-change conf.texi.tmp conf.texi; \
	else \
	  if cmp conf.texi.tmp $(srcdir)/conf.texi > /dev/null; then \
	    echo conf.texi is unchanged; \
	    rm -f conf.texi.tmp; \
	  else \
	    mv -f conf.texi.tmp conf.texi; \
	  fi; \
	fi

octave.info: $(TEXINFO) conf.texi
	-makeinfo -I$(srcdir) $(srcdir)/octave.texi

octave.dvi: $(TEXINFO) conf.texi
	-TEXINPUTS="$(srcdir):$(srcdir)/..:$(TEXINPUTS):" ; \
	  export TEXINPUTS ; \
	  texi2dvi $(srcdir)/octave.texi

octave.ps: octave.dvi
	-dvips -o octave.ps octave.dvi

../../INSTALL.OCTAVE: install1.texi install.texi
	-makeinfo --no-header --output INSTALL -I$(srcdir) \
	  $(srcdir)/install1.texi
	mv INSTALL ../../INSTALL.OCTAVE

../../BUGS: bugs1.texi bugs.texi
	-makeinfo --no-header --output BUGS -I$(srcdir) \
	  $(srcdir)/bugs1.texi
	mv BUGS ../../BUGS

check: all
.PHONY: check

install: all
	$(top_srcdir)/mkinstalldirs $(mandir) $(infodir)
	@if test -d $(mandir) ; then \
	  rm -f $(mandir)/octave.$(manext) ; \
	  echo "installing $(srcdir)/octave.1 in $(mandir)" ; \
	  $(INSTALL_DATA) $(srcdir)/octave.1 $(mandir)/octave.$(manext) ; \
	fi
	@if test -d $(infodir) ; then \
	  rm -f $(infodir)/octave.info* ; \
	  echo "installing info files in $(infodir)" ; \
	  if test -f octave.info ; then \
	    for f in octave.info* ; do \
	      $(INSTALL_DATA) $$f $(infodir)/$$f ; \
	    done ; \
	  else \
	    for f in $(srcdir)/octave.info* ; do \
	      $(INSTALL_DATA) $$f $(infodir)/`basename $$f` ; \
	    done ; \
	  fi ; \
	  if test -f $(infodir)/dir ; then \
	    if grep "^\* Octave: (octave)." $(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 $(infodir)/dir." ; \
	      echo "" ; \
	    fi ; \
	  else \
	    echo "installing $(srcdir)/dir in $(infodir)" ; \
	    $(INSTALL_DATA) $(srcdir)/dir $(infodir)/dir ; \
	  fi ; \
	fi
.PHONY: install

uninstall:
	rm -f $(infodir)/octave.info* $(mandir)/octave.$(manext)
.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
.PHONY: mostlyclean clean

distclean: clean
	rm -f Makefile
.PHONY: distclean

maintainer-clean: distclean
	rm -f tags TAGS octave.info octave.info-* octave.dvi octave.ps \
.PHONY: maintainer-clean

local-dist: all
	ln $(DISTFILES) ../../`cat ../../.fname`/doc/interpreter
.PHONY: local-dist

dist: all
	ln $(DISTFILES) ../../`cat ../../.fname`/doc/interpreter
.PHONY: dist

doc-dist: all
	ln $(FORMATTED) ../../`cat ../../.fname`/doc/interpreter
.PHONY: doc-dist