Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I use pkginclude_HEADERS and Automake to get a second include directory?

Tags:

automake

Much of this topic was covered in this thread on pkginclude_HEADERS

I have an open source library and it has some includes with common names. I suspect the best solution is to have my umbrella include file in the pkginclude_HEADERS directory, then have an additional directory there that has all the other headers in it. Then in the umbrella file the usage will be #include .

How can I coerce automake to do this? Thanks!

like image 599
David H Avatar asked Dec 17 '11 17:12

David H


1 Answers

Most likely:

nobase_pkginclude_HEADERS = subdir/subfile.h

so subfile.h gets copied to ${pkgincludedir}/subdir/subfile.h. Without the nobase_ prefix, it would end up as ${pkgincludedir}/subfile.h.

like image 87
jørgensen Avatar answered Nov 16 '22 07:11

jørgensen