blob: eaf91cbc1cc42d397f0ff4556654d6c67a953cd1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
INCLUDES = \
$(WARN_CFLAGS) \
$(DISABLE_DEPRECATED_CFLAGS) \
$(CUPS_PK_CFLAGS)
libexec_PROGRAMS = cups-pk-helper-mechanism
noinst_PROGRAMS = \
test-cups \
test-cups-pk
cups-pk-helper-mechanism-glue.h: $(srcdir)/cups-pk-helper-mechanism.xml
dbus-binding-tool --prefix=cph_mechanism --mode=glib-server \
--output=cups-pk-helper-mechanism-glue.h \
$(srcdir)/cups-pk-helper-mechanism.xml
cups_pk_helper_mechanism_SOURCES = \
cups.c \
cups.h \
cups-pk-helper-mechanism.c \
cups-pk-helper-mechanism.h \
main.c
cups_pk_helper_mechanism_LDADD = \
$(CUPS_PK_LIBS) \
$(CUPS_LIBS)
test_cups_SOURCES = \
cups.c \
cups.h \
test-cups.c
test_cups_LDADD = \
$(CUPS_PK_LIBS) \
$(CUPS_LIBS)
test_cups_pk_SOURCES = \
test-cups-pk.c
test_cups_pk_CFLAGS = \
$(CUPS_PK_GNOME_CFLAGS)
test_cups_pk_LDADD = \
$(CUPS_PK_GNOME_LIBS) \
$(CUPS_PK_LIBS) \
$(CUPS_LIBS)
BUILT_SOURCES = cups-pk-helper-mechanism-glue.h
dbus_servicesdir = $(datadir)/dbus-1/system-services
dbus_confdir = $(sysconfdir)/dbus-1/system.d
polkitdir = $(datadir)/PolicyKit/policy
dbus_services_in_files = org.opensuse.CupsPkHelper.Mechanism.service.in
polkit_in_files = org.opensuse.cupspkhelper.mechanism.policy.in
dbus_services_DATA = $(dbus_services_in_files:.service.in=.service)
$(dbus_services_DATA): $(dbus_services_in_files)
sed -e "s|\@LIBEXECDIR\@|$(libexecdir)|" $< > $@
dbus_conf_DATA = org.opensuse.CupsPkHelper.Mechanism.conf
@INTLTOOL_POLICY_RULE@
polkit_DATA = $(polkit_in_files:.policy.in=.policy)
check:
$(POLKIT_POLICY_FILE_VALIDATE) $(polkit_DATA)
EXTRA_DIST = \
$(dbus_services_in_files) \
org.opensuse.CupsPkHelper.Mechanism.conf \
$(polkit_in_files) \
cups-pk-helper-mechanism.xml
CLEANFILES = \
$(BUILT_SOURCES) \
$(polkit_DATA) \
$(dbus_services_DATA)
|