[jhbuild] Allow not installing the desktop file
- From: Mathieu Bridon <mbridon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild] Allow not installing the desktop file
- Date: Sat, 12 Nov 2016 10:33:53 +0000 (UTC)
commit b114bdd7fb616edf962f561a049155e823e7ffe6
Author: Mathieu Bridon <bochecha daitauha fr>
Date: Fri Nov 11 16:03:02 2016 +0100
Allow not installing the desktop file
No more "Sundry" folder with only jhbuild inside!
https://bugzilla.gnome.org/show_bug.cgi?id=774271
Makefile.am | 2 ++
configure.ac | 8 ++++++++
2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index b47518d..bb2454c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -11,6 +11,7 @@ DTDS = \
modulesets/moduleset.rnc \
$(NULL)
+if GUI_ENABLED
desktopdir = $(datadir)/applications
desktop_DATA = jhbuild.desktop
@@ -20,6 +21,7 @@ jhbuild.desktop.in: jhbuild.desktop.in.in
# Substitute variables in a Desktop Entry file.
jhbuild.desktop: jhbuild.desktop.in
$(AM_V_GEN) sed -e 's|@bindir[@]|$(bindir)|g' $< > $@
+endif
EXTRA_DIST = $(PATCHES) $(MODULESETS) $(DTDS) \
modulesets/moduleset.xsl \
diff --git a/configure.ac b/configure.ac
index 08078a0..78a76cf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -32,6 +32,14 @@ AC_ARG_ENABLE(
[enable_doc_installation=no])
AM_CONDITIONAL([DOC_INSTALLATION_ENABLED],[test "x$enable_doc_installation" = "xyes"])
+# GUI
+AC_ARG_ENABLE(
+ gui,
+ AS_HELP_STRING([--enable-gui=@<:@no/yes@:>@], [install the graphical user interface (default: no)]),
+ [enable_gui=$enableval],
+ [enable_gui=no])
+AM_CONDITIONAL([GUI_ENABLED],[test "x$enable_gui" == "xyes"])
+
YELP_HELP_INIT
AC_CONFIG_FILES([
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]