bug-make
[Top][All Lists]
Advanced

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

include instruction question


From: Kovalevich Victor
Subject: include instruction question
Date: Thu, 17 Jan 2002 18:28:59 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1

Hi!
I have one question: can I use 'include' instruction in a make file that is included by this instruction in an other make file. For example:

~/dir1/Makefile.inc:

#
# ~/dir1/Makefile.inc file body
ROOT=${HOME}

~/dir1/dir2/Makefile.inc:

#
# ~/dir1/dir2/Makefile.inc file body
include ../Makefile.inc

~/dir1/dir2/dir3/makefile:

#
# ~/dir1/dir2/dir3/makefile file body
include ../Makefile.inc
usage:
    @ echo Root directory is ${ROOT}
 

when I launched make process in ~/dir/dir2/dir2 directory I got following messages:

../Makefile.inc:3: ../Makefile.inc: Too many open files
Root directory is

that means ROOT variable was not defined. Is there a defect of make or did I do any mistake ? Unfortunately I did not find any information about restriction of 'include' instruction usage in make documentation. Can anyone explain me this effect?

Thanks in advance.

-- 
Best regards, Kovalevich Victor
mailto:address@hidden

reply via email to

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