~ubuntu-branches/ubuntu/quantal/colord/quantal-proposed

« back to all changes in this revision

Viewing changes to contrib/colord-sane/Makefile.am

  • Committer: Package Import Robot
  • Author(s): Christopher James Halse Rogers
  • Date: 2012-03-01 17:33:00 UTC
  • mto: (1.1.4) (2.1.7 sid)
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: package-import@ubuntu.com-20120301173300-q1s2bs8yubnybln8
ImportĀ upstreamĀ versionĀ 0.1.18

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
introspectiondir = $(datadir)/dbus-1/interfaces
 
2
dist_introspection_DATA =                               \
 
3
        org.freedesktop.colord.sane.xml
 
4
 
 
5
INCLUDES =                                              \
 
6
        $(GLIB_CFLAGS)                                  \
 
7
        $(GUDEV_CFLAGS)                                 \
 
8
        $(SANE_CFLAGS)                                  \
 
9
        -I$(top_srcdir)                                 \
 
10
        -I$(top_srcdir)/libcolord                       \
 
11
        -DG_LOG_DOMAIN=\"CdSane\"                       \
 
12
        -DLIBEXECDIR=\"$(libexecdir)\"                  \
 
13
        -DDATADIR=\"$(datadir)\"                        \
 
14
        -DVERSION="\"$(VERSION)\""                      \
 
15
        -DCD_COMPILATION                                \
 
16
        -DG_UDEV_API_IS_SUBJECT_TO_CHANGE               \
 
17
        -DLOCALEDIR=\""$(localedir)"\"
 
18
 
 
19
if HAVE_GUDEV
 
20
if HAVE_SANE
 
21
 
 
22
COLORD_LIBS =                                           \
 
23
        $(top_builddir)/libcolord/libcolord.la
 
24
 
 
25
libexec_PROGRAMS =                                      \
 
26
        colord-sane
 
27
 
 
28
colord_sane_SOURCES =                                   \
 
29
        cd-main.c
 
30
 
 
31
colord_sane_LDADD =                                     \
 
32
        $(COLORD_LIBS)                                  \
 
33
        $(GUDEV_LIBS)                                   \
 
34
        $(SANE_LIBS)                                    \
 
35
        $(GLIB_LIBS)
 
36
 
 
37
colord_sane_CFLAGS =                                    \
 
38
        $(WARNINGFLAGS_C)
 
39
endif
 
40
endif
 
41
 
 
42
dbusdir = $(sysconfdir)/dbus-1/system.d
 
43
dist_dbus_DATA = org.freedesktop.colord-sane.conf
 
44
 
 
45
dbusservicemaindir = $(datadir)/dbus-1/system-services
 
46
dbusservicemain_in_files = org.freedesktop.colord-sane.service.in
 
47
dbusservicemain_DATA     = $(dbusservicemain_in_files:.service.in=.service)
 
48
$(dbusservicemain_DATA): $(dbusservicemain_in_files) Makefile
 
49
        @sed -e "s|\@servicedir\@|$(libexecdir)|" $< | \
 
50
        sed -e "s|\@daemon_user\@|$(daemon_user)|" > $@
 
51
 
 
52
if HAVE_SYSTEMD
 
53
systemdservicemaindir = $(systemdsystemunitdir)
 
54
systemdservicemain_in_files = colord-sane.service.in
 
55
systemdservicemain_DATA     = $(systemdservicemain_in_files:.service.in=.service)
 
56
$(systemdservicemain_DATA): $(systemdservicemain_in_files) Makefile
 
57
        @sed -e "s|\@servicedir\@|$(libexecdir)|" $< | \
 
58
        sed -e "s|\@daemon_user\@|$(daemon_user)|" > $@
 
59
endif
 
60
 
 
61
EXTRA_DIST =                                            \
 
62
        $(dbusservicemain_in_files)                             \
 
63
        org.freedesktop.colord-sane.conf.in
 
64
 
 
65
if HAVE_SYSTEMD
 
66
EXTRA_DIST += $(systemdservicemain_in_files)
 
67
endif
 
68
 
 
69
DISTCLEANFILES =                                        \
 
70
        $(dbusservicemain_DATA)                         \
 
71
        $(dist_profile_DATA)                            \
 
72
        $(systemdservicemain_DATA)
 
73
 
 
74
-include $(top_srcdir)/git.mk