# DMakefile for jade's Texinfo based manual (dmake == Matt Dillon's make)
# Copyright (C) 1993, 1994 John Harper <jsh@ukc.ac.uk>

# Jade is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.

# Jade is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with Jade; see the file COPYING.  If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.

MAKEINFO = makeinfo

# This should be the special version of makeinfo which supports AmigaGuide
# files if you want the .guide or .doc file
MAKEGUIDE = makeguide

MAKEINFOFLAGS = --no-validate

TEXI2DVI = texi2dvi
DVIPS = dvips

jade.info : jade.texi
	$(MAKEINFO) $(MAKEINFOFLAGS) %(right) -o %(left)

jade.guide : jade.texi
	$(MAKEGUIDE) $(MAKEINFOFLAGS) --amiga %(right) -o %(left)

jade.doc : jade.texi
	$(MAKEGUIDE) $(MAKEINFOFLAGS) --amiga --no-headers %(right) -o %(left)

jade.dvi : jade.texi
	$(TEXI2DVI) %(right)

jade.ps : jade.dvi
	$(DVIPS) %(right)

all : jade.guide

man : jade.info jade.guide jade.doc jade.dvi jade.ps

clean :
	-delete #?~ jade.info#? jade.guide jade.doc jade.dvi jade.ps

realclean : clean

