comparison Makefile @ 9:0e50d3652326

use libunique to ensure that only a single instance of pk-update-icon can be run
author Guido Berhoerster <guido@berhoerster.name>
date Tue, 11 Oct 2011 17:07:49 +0200
parents 58a3312a1c59
children fe1a21ab4f69
comparison
equal deleted inserted replaced
8:58a3312a1c59 9:0e50d3652326
13 localedir ?= $(datadir)/locale 13 localedir ?= $(datadir)/locale
14 sysconfdir ?= /etc 14 sysconfdir ?= /etc
15 xdgautostartdir ?= $(sysconfdir)/xdg/autostart 15 xdgautostartdir ?= $(sysconfdir)/xdg/autostart
16 16
17 PACKAGE = pk-update-icon 17 PACKAGE = pk-update-icon
18 APP_NAME = org.opensuse.pk-update-icon
18 VERSION = 0.1 19 VERSION = 0.1
19 OBJS = main.o notify.o packagekit.o 20 OBJS = main.o notify.o packagekit.o
20 AUTOSTART_FILE = $(PACKAGE).desktop 21 AUTOSTART_FILE = $(PACKAGE).desktop
21 MOFILES := $(patsubst %.po,%.mo,$(wildcard po/*.po)) 22 MOFILES := $(patsubst %.po,%.mo,$(wildcard po/*.po))
22 POTFILE = po/$(PACKAGE).pot 23 POTFILE = po/$(PACKAGE).pot
23 CPPFLAGS := $(shell pkg-config --cflags gtk+-2.0 libnotify packagekit-glib2) \ 24 CPPFLAGS := $(shell pkg-config --cflags gtk+-2.0 unique-1.0 libnotify packagekit-glib2) \
24 -DI_KNOW_THE_PACKAGEKIT_GLIB2_API_IS_SUBJECT_TO_CHANGE \ 25 -DI_KNOW_THE_PACKAGEKIT_GLIB2_API_IS_SUBJECT_TO_CHANGE \
25 -DPACKAGE="\"$(PACKAGE)\"" \ 26 -DPACKAGE="\"$(PACKAGE)\"" \
27 -DAPP_NAME=\"$(APP_NAME)\" \
26 -DLOCALEDIR="\"$(localedir)\"" 28 -DLOCALEDIR="\"$(localedir)\""
27 LDLIBS := $(shell pkg-config --libs gtk+-2.0 libnotify packagekit-glib2) 29 LDLIBS := $(shell pkg-config --libs gtk+-2.0 unique-1.0 libnotify packagekit-glib2)
28 30
29 .DEFAULT_TARGET = all 31 .DEFAULT_TARGET = all
30 32
31 .PHONY: all clean install 33 .PHONY: all clean install
32 34