From de8f2ff2d3932d13ef6c2b5740d5c6a30308d317 Mon Sep 17 00:00:00 2001
From: Daniel Salzman <daniel.salzman@nic.cz>
Date: Fri, 18 Nov 2016 18:43:02 +0100
Subject: [PATCH] python: add Makefile to distribute the scripts

---
 .gitignore         | 2 ++
 Makefile.am        | 2 +-
 configure.ac       | 1 +
 python/Makefile.am | 5 +++++
 4 files changed, 9 insertions(+), 1 deletion(-)
 create mode 100644 python/Makefile.am

diff --git a/.gitignore b/.gitignore
index b0e085aaab..f60a19afba 100644
--- a/.gitignore
+++ b/.gitignore
@@ -18,6 +18,8 @@
 /src/Makefile.in
 /src/zscanner/Makefile
 /src/zscanner/Makefile.in
+/python/Makefile
+/python/Makefile.in
 /samples/Makefile
 /samples/Makefile.in
 /samples/knot.sample.conf
diff --git a/Makefile.am b/Makefile.am
index f6f6962f9d..88d86ad861 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,5 @@
 ACLOCAL_AMFLAGS = -I m4
-SUBDIRS = libtap src tests tests-fuzz samples doc
+SUBDIRS = libtap src tests tests-fuzz python samples doc
 
 .PHONY: singlehtml install-singlehtml
 singlehtml install-singlehtml:
diff --git a/configure.ac b/configure.ac
index 19559907e2..34c2916aad 100644
--- a/configure.ac
+++ b/configure.ac
@@ -531,6 +531,7 @@ AC_CONFIG_FILES([Makefile
                  tests/Makefile
                  tests-fuzz/Makefile
                  samples/Makefile
+                 python/Makefile
                  src/Makefile
                  src/contrib/dnstap/Makefile
                  src/dnssec/Makefile
diff --git a/python/Makefile.am b/python/Makefile.am
new file mode 100644
index 0000000000..2c03a5bb7c
--- /dev/null
+++ b/python/Makefile.am
@@ -0,0 +1,5 @@
+EXTRA_DIST =			\
+	libknot/__init__.py	\
+	libknot/control.py	\
+	stats_http.py		\
+	stats_influxdb.py
-- 
GitLab