Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are some good resources for GNU Make? [closed]

Tags:

gnu-make

I have read about 1/3 of the GNU Make manual, do you guys know of any resources to really learn the Art of using Make.

Ideally, there might be some examples where two ways of doing something are possible, and the author explains which method he chose and why.

I am primarily using Make not to build C/C++ programs but to operate a processing pipeline for data analysis.

like image 962
engineerchuan Avatar asked Jul 21 '11 19:07

engineerchuan


People also ask

What does := means in makefile?

":=" is for defining simply expanded variable, which is expanded once and for all.

Which of these is a reference to a make variable in GNU make?

Basics of Variable References To substitute a variable's value, write a dollar sign followed by the name of the variable in parentheses or braces: either `$(foo)' or `${foo}' is a valid reference to the variable foo .

What is ?= IN make?

?= indicates to set the KDIR variable only if it's not set/doesn't have a value. For example: KDIR ?= "foo" KDIR ?= "bar" test: echo $(KDIR) Would print "foo"


2 Answers

Managing Projects with GNU Make, by Robert Mecklenburg, is the best I've come across. Plus, it's an O'Reilly Open Book, so O'Reilly gives away free PDFs of it on their website. Read it linearly, and start from the beginning (even if you think you already know the basics of GNU Make).

like image 82
splicer Avatar answered Oct 05 '22 04:10

splicer


John Graham-Cumming has written a book called GNU Make Unleashed which looks promising, although I have not read it yet. http://www.lulu.com/product/paperback/gnu-make-unleashed/2937580 and http://jgc.org/

like image 22
tripleee Avatar answered Oct 05 '22 03:10

tripleee