/*
 * NAME
 *	text - process text 
 *
 * DESCRIPTION
 *	This cookbook is used to process text documents.
 *
 *	Include file dependencies are automatically detected.
 *	The requirements for various preprocessors are automatically detected
 *	(eg eqn, tbl, pic, graf).
 *
 * RECIPES
 *	%.ps: %.t	PostScript for generic *roff source
 *	%: %.t		straight text from *roff source
 *
 * VARIABLES
 *	text_incl	The text_incl command (finds include dependencies).
 *			Not altered if already set.
 *	text_roff	The text_roff command	 (finds preprocessor needs).
 *			Not altered if already set.
 *	roff_flags	Arguments passed to text_roff,
 *			and indirectly to the *roff program.
 *			Not altered if already set.
 *			Defaults to empty.
 *
 * MANIFEST: cookbook for formatting documents
 */

#pragma once

if [not [defined text_incl]] then
    text_incl = text_incl;
if [not [defined text_roff]] then
    text_roff = text_roff;
if [not [defined roff_flags]] then
    roff_flags = ;

%.ps: %.t: [collect [text_incl] %.t]
    {
	[collect [text_roff] -e [roff_flags] %.t] > %.ps;
    }
    
%: %.t: [collect [text_incl] %.t]
    {
	[collect [text_roff] -n [roff_flags] %.t] > %.doc;
    }
