]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
build-sys: don't build networkctl if networkd is disabled
authorFelipe Sateler <fsateler@gmail.com>
Mon, 21 Aug 2017 12:48:41 +0000 (09:48 -0300)
committerFelipe Sateler <fsateler@gmail.com>
Wed, 23 Aug 2017 19:10:42 +0000 (16:10 -0300)
meson.build

index 9a8f93f0cfc3096651f361ce314c451855326207..67df9a45997759ca4a67a8f8ebb491b8075a0bf3 100644 (file)
@@ -2201,18 +2201,17 @@ if conf.get('ENABLE_NETWORKD', false)
                    install_rpath : rootlibexecdir,
                    install : true,
                    install_dir : rootlibexecdir)
-endif
 
-exe = executable('networkctl',
-                 networkctl_sources,
-                 include_directories : includes,
-                 link_with : [libsystemd_network,
+        exe = executable('networkctl',
+                   networkctl_sources,
+                   include_directories : includes,
+                   link_with : [libsystemd_network,
                               libshared],
-                 install_rpath : rootlibexecdir,
-                 install : true,
-                 install_dir : rootbindir)
-public_programs += [exe]
-
+                   install_rpath : rootlibexecdir,
+                   install : true,
+                   install_dir : rootbindir)
+        public_programs += [exe]
+endif
 ############################################################
 
 foreach tuple : tests