troglobit / finit

Fast init for Linux. Cookies included
https://troglobit.com/projects/finit/
MIT License
622 stars 61 forks source link

make install-headers-only ? #303

Closed hongkongkiwi closed 1 year ago

hongkongkiwi commented 1 year ago

Whats the best way to install headers only from finit so I can build the finit plugins? I couldn't see something like make install-headers-only and I did not want to make install as this is my development machine and I don't want to change my init.

troglobit commented 1 year ago

Hmm, let me see ... we have a pkginclude_HEADERS variable set. I think the following should do the trick:

$ cd src/
$ make install-pkgincludeHEADERS DESTDIR=/tmp/foo
/usr/bin/mkdir -p '/tmp/foo/usr/include/finit'
/usr/bin/install -c -m 644 cgroup.h cond.h conf.h finit.h helpers.h log.h plugin.h svc.h service.h '/tmp/foo/usr/include/finit'

DESTDIR is optional.

hongkongkiwi commented 1 year ago

Great thanks!