build-sys: don't build networkctl if networkd is disabled

This commit is contained in:
Felipe Sateler 2017-08-21 09:48:41 -03:00
parent 521d3679c1
commit dcfe072ad6

View file

@ -2201,9 +2201,8 @@ if conf.get('ENABLE_NETWORKD', false)
install_rpath : rootlibexecdir,
install : true,
install_dir : rootlibexecdir)
endif
exe = executable('networkctl',
exe = executable('networkctl',
networkctl_sources,
include_directories : includes,
link_with : [libsystemd_network,
@ -2211,8 +2210,8 @@ exe = executable('networkctl',
install_rpath : rootlibexecdir,
install : true,
install_dir : rootbindir)
public_programs += [exe]
public_programs += [exe]
endif
############################################################
foreach tuple : tests