~jamesodhunt/upstart/bug-1356824

« back to all changes in this revision

Viewing changes to extra/Makefile.am

  • Committer: Scott James Remnant
  • Date: 2010-12-10 04:42:34 UTC
  • mto: This revision was merged to the branch mainline in revision 1307.
  • Revision ID: scott@netsplit.com-20101210044234-viqv07o1s06n8s8n
Import the udev bridge from Ubuntu

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## Process this file with automake to produce Makefile.in
 
2
 
 
3
AM_CFLAGS = \
 
4
        $(NIH_CFLAGS) \
 
5
        $(NIH_DBUS_CFLAGS) \
 
6
        $(DBUS_CFLAGS) \
 
7
        $(UDEV_CFLAGS)
 
8
 
 
9
AM_CPPFLAGS = \
 
10
        -DLOCALEDIR="\"$(localedir)\"" \
 
11
        -DSBINDIR="\"$(sbindir)\"" \
 
12
        -I$(top_builddir) -I$(top_srcdir) -iquote$(builddir) -iquote$(srcdir) \
 
13
        -I$(top_srcdir)/intl
 
14
 
 
15
 
 
16
initdir = $(sysconfdir)/init
 
17
 
 
18
if HAVE_UDEV
 
19
dist_init_DATA = \
 
20
        conf/upstart-udev-bridge.conf
 
21
 
 
22
dist_man_MANS = \
 
23
        man/upstart-udev-bridge.8
 
24
 
 
25
 
 
26
sbin_PROGRAMS = \
 
27
        upstart-udev-bridge
 
28
 
 
29
upstart_udev_bridge_SOURCES = \
 
30
        upstart-udev-bridge.c
 
31
nodist_upstart_udev_bridge_SOURCES = \
 
32
        $(com_ubuntu_Upstart_OUTPUTS)
 
33
upstart_udev_bridge_LDADD = \
 
34
        $(LTLIBINTL) \
 
35
        $(NIH_LIBS) \
 
36
        $(NIH_DBUS_LIBS) \
 
37
        $(DBUS_LIBS) \
 
38
        $(UDEV_LIBS)
 
39
else
 
40
EXTRA_DIST = \
 
41
        man/upstart-udev-bridge.8
 
42
endif
 
43
 
 
44
 
 
45
com_ubuntu_Upstart_OUTPUTS = \
 
46
        com.ubuntu.Upstart.c \
 
47
        com.ubuntu.Upstart.h
 
48
 
 
49
com_ubuntu_Upstart_XML = \
 
50
        ../dbus/com.ubuntu.Upstart.xml
 
51
 
 
52
$(com_ubuntu_Upstart_OUTPUTS): $(com_ubuntu_Upstart_XML)
 
53
        $(AM_V_GEN)$(NIH_DBUS_TOOL) \
 
54
                --package=$(PACKAGE) \
 
55
                --mode=proxy --prefix=upstart \
 
56
                --default-interface=com.ubuntu.Upstart0_6 \
 
57
                --output=$@ $<
 
58
 
 
59
 
 
60
com_ubuntu_Upstart_Job_OUTPUTS = \
 
61
        com.ubuntu.Upstart.Job.c \
 
62
        com.ubuntu.Upstart.Job.h
 
63
 
 
64
com_ubuntu_Upstart_Job_XML = \
 
65
        ../dbus/com.ubuntu.Upstart.Job.xml
 
66
 
 
67
$(com_ubuntu_Upstart_Job_OUTPUTS): $(com_ubuntu_Upstart_Job_XML)
 
68
        $(AM_V_GEN)$(NIH_DBUS_TOOL) \
 
69
                --package=$(PACKAGE) \
 
70
                --mode=proxy --prefix=job_class \
 
71
                --default-interface=com.ubuntu.Upstart0_6.Job \
 
72
                --output=$@ $<
 
73
 
 
74
 
 
75
# These have to be built sources because we can't compile object files
 
76
# without the header file existing first
 
77
BUILT_SOURCES = \
 
78
        $(com_ubuntu_Upstart_OUTPUTS) \
 
79
        $(com_ubuntu_Upstart_Job_OUTPUTS)
 
80
 
 
81
CLEANFILES = \
 
82
        $(com_ubuntu_Upstart_OUTPUTS) \
 
83
        $(com_ubuntu_Upstart_Job_OUTPUTS)
 
84
 
 
85
 
 
86
clean-local:
 
87
        rm -f *.gcno *.gcda
 
88
 
 
89
maintainer-clean-local:
 
90
        rm -f *.gcov