aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuca Deri <lucaderi@users.noreply.github.com>2020-09-20 18:33:57 +0200
committerGitHub <noreply@github.com>2020-09-20 18:33:57 +0200
commitea9177cc9397270172e16e10e2ed947c8471323c (patch)
tree492f6f90618cf5fb2ebee363ebf8aaee92999bfc /src
parent1385f05713045b846f5a830cfc23eabd5f71e70d (diff)
parentfdef6f3545bd4a8e722b2ace144a2b73a782f265 (diff)
Merge pull request #1018 from lnslbrty/fix/make-dist
Fixed broken `make dist' and added CI check.
Diffstat (limited to 'src')
-rw-r--r--src/include/Makefile.am12
-rw-r--r--src/lib/Makefile.in6
2 files changed, 6 insertions, 12 deletions
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 902941d26..6c69485b3 100644
--- a/src/lib/Makefile.in
+++ b/src/lib/Makefile.in
@@ -62,6 +62,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