PDA

View Full Version : [Solved] Makefile config


dennylin93
June 6th, 2009, 11:56
I'm editing a Makefile, and I came across this problem:


COMMENT= PHP Scripting Language
COMMENT?= Version 2.2.x of Apache web server with ${WITH_MPM:L} MPM.


The first line is from php5/Makefile, and the second line is from www/apache22/Makefile. Why does the second line have a "?" after COMMENT?

graudeejs
June 6th, 2009, 12:39
?= indicates, that if variable is not defined, Makefile will define it

It's like using CC?=gcc
if CC is not defined (usually it's defined to system default compiler aka cc)


I find it weird to have comment?= in Makefile

Carpetsmoker
June 10th, 2009, 18:28
I find it weird to have comment?= in Makefile

It is useful for master/slave ports.