From: Jason Ish Date: Fri, 18 Oct 2024 14:46:42 +0000 (-0600) Subject: make: install-headers: rust-bindings.h X-Git-Tag: suricata-8.0.0-beta1~706 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d766df12b54a805cf1d7eef47d1c174a340ed5b;p=thirdparty%2Fsuricata.git make: install-headers: rust-bindings.h rust-bindings.h was not being installed with "make install-headers", and its now pulled in by a header used for plugin support, so make sure its installed. We first attempt to install the "dist" version if exists, otherwise install the "gen" one. Also install the "gen" even if the "dist" one exists, as its going to be newer. --- diff --git a/src/Makefile.am b/src/Makefile.am index aaca859654..b0f841cfd0 100755 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1174,6 +1174,12 @@ install-headers: for header in $(noinst_HEADERS); do \ $(INSTALL_DATA) $$header "$(DESTDIR)${includedir}/suricata"; \ done + if test -e ../rust/dist/rust-bindings.h; then \ + $(INSTALL_DATA) ../rust/dist/rust-bindings.h "$(DESTDIR)${includedir}/suricata"; \ + fi + if test -e ../rust/gen/rust-bindings.h; then \ + $(INSTALL_DATA) ../rust/gen/rust-bindings.h "$(DESTDIR)${includedir}/suricata"; \ + fi # Until we can remove autoconf.h from our headers, we need to to # provide this for library/plugin users.