From 9e050a5d47de07f0b5a661c8421a808c4b28d9db Mon Sep 17 00:00:00 2001 From: rbuj Date: Fri, 5 Feb 2021 13:58:15 +0100 Subject: build: Don't install packages.match when packagekit is disabled --- configure.ac | 1 + data/Makefile.am | 2 ++ 2 files changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index a20f9ab..87aed9d 100644 --- a/configure.ac +++ b/configure.ac @@ -129,6 +129,7 @@ AC_ARG_ENABLE(packagekit, if test "x$enable_packagekit" != "xno"; then AC_DEFINE(ENABLE_PACKAGEKIT, 1, [define to enable PackageKit installer]) fi +AM_CONDITIONAL(ENABLE_PACKAGEKIT, test x"$enable_packagekit" != x"no") dnl ****************************** diff --git a/data/Makefile.am b/data/Makefile.am index 76b4d4b..3210fc3 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -11,8 +11,10 @@ else $(AM_V_GEN) sed '/^# Translators/d' < $< > $@ endif +if ENABLE_PACKAGEKIT matchdir = $(datadir)/engrampa match_DATA = packages.match +endif servicedir = $(datadir)/dbus-1/services service_in_files = org.mate.Engrampa.service.in -- cgit v1.2.1