vpath directive in make


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting vpath directive in make
# 1  
Old 08-02-2006
vpath directive in make

Hi all,

I need to check the contents of my vpath directive in my file. Is it possible to check the contents of the vpath directive as we do for a variable like @echo '$vpath' .

Please let me know the above is correct or suggest me the correct one.

Thanks in advance.

-Jerry
# 2  
Old 08-03-2006
MySQL

let me put the question in an approchable way..

In my make file I have a prerequisite which is a library and the I have the library in /jerry/lib and I have included the path in the vpath directive as

vpath %.so /jerry/lib

but still I get an error stating that the directory cant be found during the build.

Hope this help and get more help from you guys..

-Jerry
# 3  
Old 08-08-2006
MySQL

The reason I was trying to print vpath is to find whether the libraries I have given in the pre-requisities list is added to the vpath for the searching.

The missing library problem is solved when I gave the library with the whole name instead of giving as -l<name>. This is a workaround and not the actual solution I still was not able to figure out why it didnt worked with -l<name>.

Thank you
-Jerry
# 4  
Old 08-08-2006
I have no idea what you're talking about. In my universe, VPATH is a macro and you can do stuff like:
Code:
VPATH=/this:/that:/the/other/thing
default:
        @echo in makefile VPATH = $(VPATH)

Used to be that make did not have "directives". The HP-UX man page mentions a .MUTEX directive while the Solaris man page mentions an include directive. I never heard of a vpath directive and I have no idea how to get it working. This is why you are not getting responses to your question. I guess nobody else heard of it either.
# 5  
Old 08-08-2006
The vpath (lower case) is a directive different from VPATH(uppercase) variable. vpath is more selective than VPATH. In VPATH you will give the path where the make should search for the libraries etc.

With vpath you can specify, for a specific pattern of pre-requisities needs to be searched in a specific path.

How to use -

vpath pattern directories
Specify the search path directories for file names that match pattern.

The search path, directories, is a list of directories to be searched, separated by colons (semi-colons on MS-DOS and MS-Windows) or blanks, just like the search path used in the VPATH variable.

Eg.

vpath %.h ../headers

tells make to look for any prerequisite whose name ends in .h in the directory ../headers if the file is not found in the current directory.

-Jerry
# 6  
Old 09-24-2007
In this link U can find Details about "vpath"

GNU <CODE>make</CODE>: GNU <CODE>make</CODE>
# 7  
Old 03-09-2008
I have the same question as Jerry

How to print the "vpath" directive to see the list of results created during pattern search?

I see that in my code vpath is not able to get the directory path properly and hence all the files that I look for are reported as "not found"

Is there any bug reported on the "vpath" ??

Thanks
Sriram
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

lscfg -vl vpath - error

Hello all, I need to run successfully this command : 1:root@abcd:/root # lscfg -vl vpathXY lscfg: device vpathXY not found. 1:root@abcd:/root # echo $? 1 If I run it on another server I will get no output which is ok : 1:root@efgh:/root # lscfg -vl vpathAB 1:root@efgh:/root # echo $?... (4 Replies)
Discussion started by: phobus
4 Replies

2. AIX

lscfg -vl vpath - error

Hello all, I need to run successfully this command : 1:root@abcd:/root # lscfg -vl vpathXY lscfg: device vpathXY not found. 1:root@abcd:/root # echo $? 1 If I run it on another server I will get no output which is ok : 1:root@efgh:/root # lscfg -vl vpathAB 1:root@efgh:/root # echo... (0 Replies)
Discussion started by: phobus
0 Replies

3. Web Development

regex in apache Allow from directive

Hi, Does the apache Allow from directive support regular expressions? such as: Allow from ^web11blah\.blah\.blah\.yahoo\.com$ what i want to do: allow access from hosts in the range web1160blah.blah.blah.yahoo.com to web1189blah.blah.blah.yahoo.com notice the 1160 to 1189 range as part... (3 Replies)
Discussion started by: Yogesh Sawant
3 Replies

4. AIX

vpath and sharks

Hello everyone: just want to know how to get the name of the shark in which the vpath is? thanks (2 Replies)
Discussion started by: jcpetela
2 Replies

5. AIX

AIX vpath lun

Hi everyone, how can I check if I have LUNs in a server and the LUNīs vpath in AiX? thx (5 Replies)
Discussion started by: jcpetela
5 Replies

6. Programming

Include directive

Hi there, I'm working on a c++ project and I need to use some libraries which are part of a framework. I installed it on my home directory, and alle the .hh are located in subdirs of my home. I'd like to include the files I need just as if they where std c header, that is: #include... (2 Replies)
Discussion started by: clalfa
2 Replies

7. AIX

vpath to an hdisk

Is there a simply way for me to map a vpath to an hdisk on AIX 5.2? (5 Replies)
Discussion started by: 2dumb
5 Replies

8. AIX

vpath fbvol relationship

Hi, I have a question about AIX vpaths and the fbvols you create via dscli on a DS8100 storage. Is there any command or any way to look which fbvol corresponds which vpath on operating system like the command fget_config -Av on a FastT storage system? I tried the datapath query device, datapath... (1 Reply)
Discussion started by: samaks
1 Replies

9. Programming

precompile directive?

hey everyone. havent posted here in a longgggg time. hope to see some familiar faces! heres my question, ive been doing basic programming in c++ again and want to use getch(). in *nix i have to use the curses library, and in windows conio.h is there a way i can have the compiler determine... (2 Replies)
Discussion started by: norsk hedensk
2 Replies

10. UNIX for Dummies Questions & Answers

apache directive only for outside network

I set up a directive for the .htaccess file in one of my web directories. It works fine. Is there a way to force only users outside my internal home network to go through the password authorization? Or, put another way, any user in my network should not have to enter a password. Is that possible? (2 Replies)
Discussion started by: dangral
2 Replies
Login or Register to Ask a Question