aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml1
-rw-r--r--Makefile.am2
-rw-r--r--example/Makefile.in4
-rw-r--r--src/include/Makefile.am12
-rw-r--r--src/lib/Makefile.in6
5 files changed, 12 insertions, 13 deletions
diff --git a/.travis.yml b/.travis.yml
index 4f5b66bbb..cbe38fc05 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -179,6 +179,7 @@ script:
- if [ -n "$QA_FUZZ" ]; then ./configure --enable-fuzztargets ; else ./configure ; fi
- make
- make -C example ndpiSimpleIntegration
+ - make dist
#after_script:
- cd tests
diff --git a/Makefile.am b/Makefile.am
index 6238c8b3c..335416e1b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -8,4 +8,4 @@ endif
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libndpi.pc
-EXTRA_DIST = autogen.sh
+EXTRA_DIST = autogen.sh configure.seed
diff --git a/example/Makefile.in b/example/Makefile.in
index 32e36677d..4d0c908f6 100644
--- a/example/Makefile.in
+++ b/example/Makefile.in
@@ -47,6 +47,10 @@ clean:
/bin/rm -f _install _postbuild _postinstall _preinstall
/bin/rm -rf build
+distdir:
+ cp categories.txt mining_hosts.txt README.DPDK '$(distdir)/'
+ find . -maxdepth 1 -type f -name '*.c' -o -name '*.h' -o -name '*.py' | xargs -I'{}' cp '{}' '$(distdir)/{}'
+
distclean: clean
/bin/rm -f Makefile.dpdk
/bin/rm -f Makefile
diff --git a/src/include/Makefile.am b/src/include/Makefile.am
deleted file mode 100644
index 19d6c60cf..000000000
--- a/src/include/Makefile.am
+++ /dev/null
@@ -1,12 +0,0 @@
-p
-plibrary_includedir=$(includedir)/libndpi-@VERSION@/libndpi
-
-library_include_HEADERS = ndpi_api.h \
- ndpi_define.h \
- ndpi_typedefs.h \
- ndpi_main.h \
- ndpi_protocol_ids.h \
- ndpi_protocols.h \
- ndpi_win32.h \
- ndpi_includes_OpenBSD.h \
- ndpi_includes.h
diff --git a/src/lib/Makefile.in b/src/lib/Makefile.in
index 09e1a7d09..3b58d1fe6 100644
--- a/src/lib/Makefile.in
+++ b/src/lib/Makefile.in
@@ -56,6 +56,12 @@ $(NDPI_LIB_SHARED): $(OBJECTS)
clean:
/bin/rm -f $(NDPI_LIB_STATIC) $(OBJECTS) *.o *.so *.lo libndpi.so*
+distdir:
+ cp ndpi_content_match.c.inc '$(distdir)/'
+ find . -type d | xargs -I'{}' mkdir -p '$(distdir)/{}'
+ find ../include -type f -name '*.h' | xargs -I'{}' cp '{}' '$(distdir)/{}'
+ find . -type f -name '*.c' -o -name '*.h' | xargs -I'{}' cp '{}' '$(distdir)/{}'
+
distclean: clean
/bin/rm -f Makefile