opensubscriber
   Find in this group all groups
 
Unknown more information…

h : help-gnu-utils@gnu.org 14 September 2009 • 3:50PM -0400

[make] include of include
by Eric

REPLY TO AUTHOR
 
REPLY TO GROUP




Hi there,

as I did not get further information in the online make user manual, I
am asking for help here. Here is my problem, I am using the GNU Make
3.80.

consider the following host structure:

application/services/makerules/check.rule:
[...]
include ./instrdeps.rule
[...]

application/services/makerules/instrdeps.rule
[...]

application/models/BD/Makefile:
[...]
include ../../services/makerules/check.rule
[...]

The following error is then showing up:
../../services/makerules/check.rule:2: instrdep.rule: No such file or
directory

I do not really understand how Make includes other files, I was
awaiting that the include directive first seeks for the file to
include in the same directory where the file originally exists.
What I mean, is that the file check.rule "include ./instrdeps.rule"
should look for the instrdeps.rule in the same directory as where the
check.rule is located.

Now that I witnessed this strange include methods, does someone have
an idea how I could solve my problem?

Note: I have to use relative paths

Regards
--
Eric



Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

opensubscriber is not affiliated with the authors of this message nor responsible for its content.