diff options
author | lukefromdc <[email protected]> | 2019-03-20 23:19:48 -0400 |
---|---|---|
committer | lukefromdc <[email protected]> | 2019-03-21 01:29:21 -0400 |
commit | 5dfb6527f45b012b328cdcc037c2510bae5039d9 (patch) | |
tree | 1e7a4cb215e2dd5802220a45fdb92d4ceb314ad2 /mate-volume-control | |
parent | 0b24e9e5aca8a93990103d752ced4967cc9bd82b (diff) | |
download | mate-media-5dfb6527f45b012b328cdcc037c2510bae5039d9.tar.bz2 mate-media-5dfb6527f45b012b328cdcc037c2510bae5039d9.tar.xz |
Allow disabling either statusicon or panelapplet
Add --enable-statusicon (yes/no default is yes) and --enable-panelapplet (yes/no default is yes) configuration flags
Diffstat (limited to 'mate-volume-control')
-rw-r--r-- | mate-volume-control/Makefile.am | 17 |
1 files changed, 15 insertions, 2 deletions
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 \ |