do not install offline update related files if disabled

This commit is contained in:
Christian Hesse 2015-12-07 16:15:08 +01:00
parent 2858fbba33
commit 3355c36135
2 changed files with 5 additions and 2 deletions

View File

@ -85,7 +85,7 @@ pkmon_LDFLAGS = \
pkmon_CFLAGS = \
$(WARNINGFLAGS_C)
if HAVE_SYSTEMD
if ENABLE_OFFLINE_UPDATE
libexec_PROGRAMS = \
pk-offline-update

View File

@ -27,7 +27,10 @@ systemdservice_in_files = \
if HAVE_SYSTEMD
systemdservicedir = $(systemdsystemunitdir)
systemdservice_DATA = $(systemdservice_in_files:.service.in=.service)
systemdservice_DATA = packagekit.service
if ENABLE_OFFLINE_UPDATE
systemdservice_DATA += packagekit-offline-update.service
endif
endif