help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to read an environment variable in a makefile


From: Martin d Anjou
Subject: Re: how to read an environment variable in a makefile
Date: Wed, 12 Nov 2008 09:06:28 -0500 (EST)
User-agent: Alpine 1.10 (LNX 962 2008-03-14)

Setenv FILE_PATH /remote/src      …this is done on the command line.

Next, in the Makefile,

INCPATH = -I$FILE_PATH     (this does not work)

INCPATH = -I$(FILE_PATH)

http://www.gnu.org/software/make/manual/make.html#Reference
Read the manual, it is really worth it.

Martin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]