CESNET / libnetconf

C NETCONF library
Other
113 stars 83 forks source link

Separate header installation #230

Closed plummer86 closed 7 years ago

plummer86 commented 8 years ago

Create an install target to install the headers separate from the devtools.

rkrejci commented 7 years ago

I miss any reason for this

plummer86 commented 7 years ago

I am installing libnetconf on an embedded product where I don't need or have space for the devtools like lnctool actually installed on the product. This change gives me the ability to install only the library and headers on the product.

rkrejci commented 7 years ago

But in that case you don't need/want to install even headers, do you?

plummer86 commented 7 years ago

Sorry, I was kind of skipping a step. I am using yocto as my build system. I need the headers installed into the sysroot used to cross compile other applications that use libnetconf. Creating the install target to install just the library and headers gets what I need into the sysroot. But no, the headers don't actually go on the product.

rkrejci commented 7 years ago

I still don't see the reason to separate headers and other devel-tools. It just complicates the configure script and 99% of users will use them together. Note that even the files you are separating from headers can be used to create an application based on libnetconf - pkgconfig is used to get necessary options for compiler, etc. Separating these files is not a good idea.