automake vs. GNU make
Posted Feb 7, 2008 0:05 UTC (Thu) by
stevenj (guest, #421)
In reply to:
LCA: Disintermediating distributions by wingo
Parent article:
LCA: Disintermediating distributions
I'm not sure what the context of that post is, but I suspect he's talking about a rather specialized case. Realize what automake gives you. With two lines:
bin_PROGRAMS = hello
hello_SOURCES = hello.c hello.h
automake will generate a Makefile that will support all the GNU standard targets (make install, uninstall, clean, distclean, clean, dist, ...), support VPATH builds properly, integrate with autoconf's detection of the compiler and compiler flags, automatically do dependency tracking (e.g. it will figure out that hello.c depends on hello.h, assuming it does), and so on.
GNU make does none of that for you. The advantages of automake over raw make, even GNU make, are even more dramatic for projects with subdirectories (recursive "make" is notoriously difficult to get right), or for projects that have to build shared libraries (the only reasonable way to do this portably is with GNU libtool, but calling libtool by hand is a PITA).
(
Log in to post comments)