Parcourir la source

[5210] Put KEA_SHELL option in parent

Francis Dupont il y a 7 ans
Parent
commit
e620bcab06
3 fichiers modifiés avec 8 ajouts et 32 suppressions
  1. 5 1
      src/bin/Makefile.am
  2. 1 13
      src/bin/shell/Makefile.am
  3. 2 18
      src/bin/shell/tests/Makefile.am

+ 5 - 1
src/bin/Makefile.am

@@ -1,4 +1,8 @@
 # The following build order must be maintained.
 # The following build order must be maintained.
-SUBDIRS = dhcp4 dhcp6 d2 agent perfdhcp admin lfc keactrl shell
+SUBDIRS = dhcp4 dhcp6 d2 agent perfdhcp admin lfc keactrl
+
+if KEA_SHELL
+SUBDIRS += shell
+endif
 
 
 check-recursive: all-recursive
 check-recursive: all-recursive

+ 1 - 13
src/bin/shell/Makefile.am

@@ -1,26 +1,14 @@
 SUBDIRS = . tests
 SUBDIRS = . tests
 
 
-EXTRA_DIST =
-
-if KEA_SHELL
-
-# Kea-shell is enabled, here are proper rules for it.
 pkgpython_PYTHON = kea_conn.py kea_connector2.py kea_connector3.py
 pkgpython_PYTHON = kea_conn.py kea_connector2.py kea_connector3.py
 
 
 sbin_SCRIPTS = kea-shell
 sbin_SCRIPTS = kea-shell
 
 
-else
-
-# Kea-shell is disabled, simply keep the files for make dist
-EXTRA_DIST += kea-shell kea_conn.py kea_connector2.py kea_connector3.py
-
-endif
-
 CLEANFILES = *.pyc
 CLEANFILES = *.pyc
 
 
 man_MANS = kea-shell.8
 man_MANS = kea-shell.8
 DISTCLEANFILES = $(man_MANS)
 DISTCLEANFILES = $(man_MANS)
-EXTRA_DIST += $(man_MANS) kea-shell.xml
+EXTRA_DIST = $(man_MANS) kea-shell.xml
 
 
 if GENERATE_DOCS
 if GENERATE_DOCS
 kea-shell.8: kea-shell.xml
 kea-shell.8: kea-shell.xml

+ 2 - 18
src/bin/shell/tests/Makefile.am

@@ -1,12 +1,5 @@
-PYTESTS =
-SHTESTS =
-EXTRA_DIST =
-
-if KEA_SHELL
-
-# Ok, shell is enabled. Let's run those tests.
-PYTESTS += shell_unittest.py
-SHTESTS += shell_process_tests.sh
+PYTESTS = shell_unittest.py
+SHTESTS = shell_process_tests.sh
 noinst_SCRIPTS = $(PYTESTS) $(SHTESTS)
 noinst_SCRIPTS = $(PYTESTS) $(SHTESTS)
 
 
 # test using command-line arguments, so use check-local target instead of TESTS
 # test using command-line arguments, so use check-local target instead of TESTS
@@ -27,15 +20,6 @@ check-shell:
 	${SHELL} $(abs_builddir)/$$shtest || exit ; \
 	${SHELL} $(abs_builddir)/$$shtest || exit ; \
 	done
 	done
 
 
-else
-
-# Nope, shell is disabled. Let's keep the files in EXTRA_DIST, so they get
-# included in make dist, but don't do anything special about them.
-EXTRA_DIST += shell_unittest.py shell_process_tests.sh
-
-endif
-
-
 CLEANDIRS = __pycache__
 CLEANDIRS = __pycache__
 
 
 clean-local:
 clean-local: