home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
c
/
cpp2latx.zip
/
PRETTY.RUL
< prev
next >
Wrap
Text File
|
1991-12-16
|
2KB
|
113 lines
/*
* Pretty Print rules setup -joke 07/06/91
*/
#ifndef TeXSuffix
#define TeXSuffix tex
#endif
#ifndef DviSuffix
#define DviSuffix dvi
#endif
#ifndef AuxSuffix
#define AuxSuffix aux
#endif
#ifndef LogSuffix
#define LogSuffix log
#endif
#ifndef LaTeXCmd
#define LaTeXCmd latex
#endif
#ifndef Cplusplus2LaTeXCmd
#define Cplusplus2LaTeXCmd c++2latex
#endif
/*
* Set up pretty printing facility.
*/
TEXSUFFIX = TeXSuffix
DVISUFFIX = DviSuffix
AUXSUFFIX = AuxSuffix
LOGSUFFIX = LogSuffix
LATEXCMD = LaTeXCmd
CPLUSPLUS2LATEXCMD = Cplusplus2LaTeXCmd
/*
* Make a Dvi file.
*/
#ifndef MakeDviRule
#define MakeDviRule(dst,src) @@\
dst.$(DVISUFFIX): src.$(TEXSUFFIX) @@\
@echo "LaTeXing src.$(TEXSUFFIX)" @@\
$(RM) dst.$(DVISUFFIX) @@\
$(LATEXCMD) src.$(TEXSUFFIX) @@\
$(RM) src.$(TEXSUFFIX) src.$(AUXSUFFIX) src.$(LOGSUFFIX)
#endif
/*
* Make a LaTeX file.
*/
#ifndef MakeLaTeXRule
#define MakeLaTeXRule(dst,src,flags) @@\
dst.$(TEXSUFFIX): src @@\
@echo "C++2LaTeXing src" @@\
$(RM) dst.$(TEXSUFFIX) @@\
$(CPLUSPLUS2LATEXCMD) src flags -o dst.$(TEXSUFFIX)
#endif
/*
* Make a Dvi file from a C++ source with flags.
*/
#ifndef MakeDviFromSrcFlags
#define MakeDviFromSrcFlags(file,flags) @@\
MakeLaTeXRule(file,file,flags) @@\
MakeDviRule(file,file)
#endif
/*
* Make a Dvi file from a C++ source.
*/
#ifndef MakeDviFromSrc
#define MakeDviFromSrc(file) @@\
MakeDviFromSrcFlags(file,-h)
#endif
/*
* Make a LaTeX file from a C++ source with flags.
*/
#ifndef MakeLaTeXFromSrcFlags
#define MakeLaTeXFromSrcFlags(file,flags) @@\
MakeLaTeXRule(file,file,flags)
#endif
/*
* Make a LaTeX file from a C++ source.
*/
#ifndef MakeLaTeXFromSrc
#define MakeLaTeXFromSrc(file) @@\
MakeLaTeXFromSrcFlags(file,/**/)
#endif
/*
* Build all Dvi files available.
*/
#ifndef BuildAllDviFiles
#define BuildAllDviFiles(target,dvifiles) @@\
target: dvifiles @@\
@echo ""
#endif
/*
* The simple dvi target: all Dvi files are stand-alone LaTeX.
*/
#ifndef SimpleDviTarget
#define SimpleDviTarget(name) @@\
BuildAllDviFiles(name,$(DVIS))
#endif