Generalwhy use scons or make?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
jhapk
Posts: 81
Joined: Tue Apr 20, 2010 9:33 pm

why use scons or make?

Post by jhapk »

Hi,

I am about to start writing a thesis. I was looking online for some sample latex layouts and I see many people have fancy makefiles and scons files for doing the compilation.

I am confused. Why do I need these if I am simply using pdflatex and include/input commands to structure my document? Anything significantly important about doing it with scons/make?

Thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: why use scons or make?

Post by frabjous »

Who do you see using makefiles, etc.?

I can’t think of any reason you’d need any such thing, unless you were really doing something fancy.
php1ic
Posts: 192
Joined: Wed Jan 28, 2009 8:17 pm

why use scons or make?

Post by php1ic »

I created a custom makefile for my thesis, mainly to save time and typing. I use latex->ps->pdf, with each step including a few options/flags. Initially I had aliases for the two conversions and one to do latex;bibtex;latex;latex.

The makefile groups everything together, was a bit of an academic exercise, and makes my life easier, especially as I transfer the entire thesis directory between home and work computers. Part of the makefile runs latex as many times as is required to resolve all internal references so it also adds some automation. It seems to be working as expected so far ;)

If I have altered many chapter files and figures, I can now simply type

Code: Select all

make pdf
instead of

Code: Select all

latex file
bibtex file
latex file
latex file
dvips [options] file.dvi -o
ps2pdf [options] file.ps
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: why use scons or make?

Post by localghost »

This way of processing only makes sense when not using a modern editor but doing most of the work on a terminal (whyever).


Best regards
Thorsten
Post Reply