You guessed well, Paul - I was running it from the PDF directory (following
your rules!)

Printdoc uses the input filename, and only changes the extension.

The makefile that you sent works rather well. Thank you, thank you! As it
turns out there are a few rogue word documents in the courses directory with
funny filenames which I needed to filter out. A minor change fixed this.

Regards,
Bob Stark

>Without knowing that we can't give you a complete answer.  However,
>using wildcard is simple enough: $(wildcard ../courses/*.doc).  Given
>your "printdoc" command doesn't seem to specify an output file I'll
>assume that you're running make from the pdf directory.
>
>In that case, write your makefile something like this:
>
>  DOCFILES := $(notdir $(wildcard ../courses/*.doc))
>
>
>  all: $(DOCFILES:%.doc=%.pdf)
>
>  %.pdf : ../courses/%.doc
>            printdoc -PRINTER="Adobe PDF" -EXITWORD=YES -OUTDIR=. -FILES=$<

Regards,

Bob Stark 

ProTech - When you're serious about Systems Management
Consulting, Software, and Training for z/OS, UNIX and Internet
www.protechtraining.com   800-373-9188 x150   412-445-8072



_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to