]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
make: install-headers: rust-bindings.h 12117/head
authorJason Ish <jason.ish@oisf.net>
Fri, 18 Oct 2024 14:46:42 +0000 (08:46 -0600)
committerVictor Julien <victor@inliniac.net>
Wed, 13 Nov 2024 09:53:59 +0000 (10:53 +0100)
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.

src/Makefile.am

index aaca8596543589b880ded99b71bf1a4defec33f9..b0f841cfd0c243a69f526336ff5165ad47bbf52d 100755 (executable)
@@ -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.