[pdftex] Re: make files

Sherlock Holmes sherlock at rna.nl
Fri Jun 8 21:59:27 CEST 2001


The most generic way is to produce a rule for generic translation of 
.tex files into .pdf files. For that you need to tell make about the 
suuffixes that need to be taken care of with generic rules and you have 
to give the rule itself.

=================
.SUFFIXES: .pdf .tex

.tex.pdf:
	texexec --pdf $?
=================

Everything between the === should be put in the file Makefile. Now, if 
you say

make blabla.pdf

when there is a file blabla.tex it will execute

	texexec --pdf blabla.tex

You can now even give multiple arguments,

make blabla.pdf hans.pdf

will result in

	texexec --pdf blabla.tex
	texexec --pdf hans.tex

of course unless the pdf files are up to date (the tex files haven't 
changed since the last texeexec command)

SH




On Friday, June 8, 2001, at 10:31  AM, Hans Hagen wrote:

> Hi,
>
> Say that i want to process a couple of files, how does a make file look?
> With:
>
> tex : blabla.tex
>       texexec --pdf blabla
>
>
> and
>
> make tex
>
> i get 'no rule to make target' so i miss a point there,
>
> Hans
> -------------------------------------------------------------------------
>                                   Hans Hagen | PRAGMA ADE | 
> pragma at wxs.nl
>                       Ridderstraat 27 | 8061 GH Hasselt | The 
> Netherlands
>  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-
> ade.com
> -------------------------------------------------------------------------
>
>



More information about the pdftex mailing list