Mercurial > projects > pk-update-icon
comparison Makefile @ 46:aa5d3752091d
Make the update viewer command configurable
Make the update viewer command configurable at copile time through the
UPDATE_VIEWER_COMMAND macro.
Make the update viewer command configurable at run time through the
-c/--command command line option.
Treat the update viewer command as a shell command and parse it via
g_shell_parse_argv(), this allows for running the update viewer via xdg-su,
gnomesu, pkexec etc.
Disable install action in the notification and on the status icon in case no
update viewer command has been provided.
author | Guido Berhoerster <gber@opensuse.org> |
---|---|
date | Thu, 18 Jun 2015 14:10:57 +0200 |
parents | ccbbb9f3d7fc |
children | f119075975e8 |
comparison
equal
deleted
inserted
replaced
45:a29fbf0a7f6c | 46:aa5d3752091d |
---|---|
38 MSGFMT := msgfmt | 38 MSGFMT := msgfmt |
39 INTLTOOL_UPDATE := intltool-update | 39 INTLTOOL_UPDATE := intltool-update |
40 INTLTOOL_MERGE := intltool-merge | 40 INTLTOOL_MERGE := intltool-merge |
41 XSLTPROC := xsltproc | 41 XSLTPROC := xsltproc |
42 DOCBOOK5_MANPAGES_STYLESHEET = http://docbook.sourceforge.net/release/xsl-ns/current/manpages/docbook.xsl | 42 DOCBOOK5_MANPAGES_STYLESHEET = http://docbook.sourceforge.net/release/xsl-ns/current/manpages/docbook.xsl |
43 UPDATE_VIEWER_COMMAND = /usr/bin/gpk-update-viewer | |
43 | 44 |
44 define generate-manpage-rule = | 45 define generate-manpage-rule = |
45 %.$(1): %.$(1).xml | 46 %.$(1): %.$(1).xml |
46 $$(XSLTPROC) \ | 47 $$(XSLTPROC) \ |
47 --xinclude \ | 48 --xinclude \ |
73 CPPFLAGS := $(shell pkg-config --cflags gtk+-2.0 unique-1.0 libnotify packagekit-glib2) \ | 74 CPPFLAGS := $(shell pkg-config --cflags gtk+-2.0 unique-1.0 libnotify packagekit-glib2) \ |
74 -DI_KNOW_THE_PACKAGEKIT_GLIB2_API_IS_SUBJECT_TO_CHANGE \ | 75 -DI_KNOW_THE_PACKAGEKIT_GLIB2_API_IS_SUBJECT_TO_CHANGE \ |
75 -DPACKAGE="\"$(PACKAGE)\"" \ | 76 -DPACKAGE="\"$(PACKAGE)\"" \ |
76 -DAPP_NAME=\"$(APP_NAME)\" \ | 77 -DAPP_NAME=\"$(APP_NAME)\" \ |
77 -DVERSION=\"$(VERSION)\" \ | 78 -DVERSION=\"$(VERSION)\" \ |
78 -DLOCALEDIR="\"$(localedir)\"" | 79 -DLOCALEDIR="\"$(localedir)\"" \ |
80 -DUPDATE_VIEWER_COMMAND="\"$(UPDATE_VIEWER_COMMAND)\"" | |
79 LDLIBS := $(shell pkg-config --libs gtk+-2.0 unique-1.0 libnotify packagekit-glib2) | 81 LDLIBS := $(shell pkg-config --libs gtk+-2.0 unique-1.0 libnotify packagekit-glib2) |
80 DOCBOOK5_MANPAGES_FLAGS = --stringparam man.authors.section.enabled 0 \ | 82 DOCBOOK5_MANPAGES_FLAGS = --stringparam man.authors.section.enabled 0 \ |
81 --stringparam man.copyright.section.enabled 0 | 83 --stringparam man.copyright.section.enabled 0 |
82 | 84 |
83 .DEFAULT_TARGET = all | 85 .DEFAULT_TARGET = all |