6

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!

Community
  • 1
  • 1
David H
  • 40,852
  • 12
  • 92
  • 138

1 Answers1

10

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.

jørgensen
  • 10,149
  • 2
  • 20
  • 27
  • So, this will work for all but the "umbrella" header file - the one that references all the others. Can I define a pkginclude_HEADERS macro too (without the no base) for that one umbrella file? – David H Dec 18 '11 at 17:32
  • 2
    (It's not a macro, it is a variable), and yes, `pkginclude_HEADERS = umbrella.h`. – jørgensen Dec 18 '11 at 19:13