Skip to contentSkip to conversation

examples: compile with `make check' and add AM_CPPFLAGS

PATCH New Pablo Neira Ayuso 1 participant 1 message Feb 22, 2022 netfilter

lore
Share & tools
lore

Pablo Neira Ayuso

author maintainer
#0 lore raw

PATCH 1/1 examples: compile with `make check' and add AM_CPPFLAGS

Compile examples via `make check' like libnftnl does. Use AM_CPPFLAGS to specify local headers via -I.

---
 examples/Makefile.am | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
examples/Makefile.am +3 -1
index c972170d3fdc..3b8b0b6708dc 100644
@@ -1,4 +1,6 @@
-noinst_PROGRAMS	= nft-buffer		\
+check_PROGRAMS	= nft-buffer		\
 		  nft-json-file
 
+AM_CPPFLAGS = -I$(top_srcdir)/include
+
 LDADD = $(top_builddir)/src/libnftables.la
Signature · 1 line
2.30.2