From 1d88a697b1ac2c80f579ea7f1e02cd2abf51d4c5 Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Wed, 20 Mar 2019 23:19:48 -0400 Subject: Allow disabling either statusicon or panelapplet Add --enable-statusicon (yes/no default is yes) and --enable-panelapplet (yes/no default is yes) configuration flags --- mate-volume-control/Makefile.am | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'mate-volume-control/Makefile.am') diff --git a/mate-volume-control/Makefile.am b/mate-volume-control/Makefile.am index a2173bb..3812a52 100644 --- a/mate-volume-control/Makefile.am +++ b/mate-volume-control/Makefile.am @@ -1,11 +1,17 @@ -NULL = - +if ENABLE_STATUSICON bin_PROGRAMS = \ mate-volume-control-status-icon \ mate-volume-control \ $(NULL) +else +bin_PROGRAMS = \ + mate-volume-control \ + $(NULL) +endif +if ENABLE_PANELAPPLET libexec_PROGRAMS = mate-volume-control-applet +endif AM_CPPFLAGS = \ $(WARN_CFLAGS) \ @@ -18,6 +24,7 @@ AM_CPPFLAGS = \ -I$(srcdir) \ $(NULL) +if ENABLE_PANELAPPLET APPLET_LOCATION = $(libexecdir)/mate-volume-control-applet appletsdir = $(datadir)/mate-panel/applets @@ -43,12 +50,15 @@ EXTRA_DIST = \ $(applets_in_files).in \ $(service_in_files) +endif + noinst_LTLIBRARIES = libmatevolumecontrol.la libmatevolumecontrol_la_SOURCES = \ gvc-channel-bar.h \ gvc-channel-bar.c \ $(NULL) +if ENABLE_STATUSICON mate_volume_control_status_icon_LDADD = \ -lm \ libmatevolumecontrol.la \ @@ -64,7 +74,9 @@ mate_volume_control_status_icon_SOURCES = \ $(NULL) mate_volume_control_status_icon_CFLAGS = $(WARN_CFLAGS) +endif +if ENABLE_PANELAPPLET mate_volume_control_applet_LDADD = \ -lm \ libmatevolumecontrol.la \ @@ -81,6 +93,7 @@ mate_volume_control_applet_SOURCES = \ $(NULL) mate_volume_control_applet_CFLAGS = $(WARN_CFLAGS) +endif mate_volume_control_LDADD = \ -lm \ -- cgit v1.2.1