forked from lfs-book/blocaled
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
111 lines (90 loc) · 2.33 KB
/
Makefile.am
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
AUTOMAKE_OPTIONS = subdir-objects
# TODO add a Makefile.am to src, and add it to SUBDIRS
SUBDIRS = . tests
EXTRA_DIST = \
data/blocaled.8.in \
data/blocaled.conf.in \
data/org.freedesktop.locale1.service.in \
AUTHORS \
COPYING \
README \
NEWS \
TODO \
$(NULL)
dist_pkgdata_DATA = \
data/kbd-model-map \
$(NULL)
sysconf_DATA = data/blocaled.conf
dbusinterfacesdir = @dbusinterfacesdir@
dist_dbusinterfaces_DATA = \
data/org.freedesktop.locale1.xml \
$(NULL)
dbusservicesdir = @dbussystemservicesdir@
dbusservices_DATA = \
data/org.freedesktop.locale1.service \
$(NULL)
dbusbusconfigdir = $(sysconfdir)/dbus-1/system.d
dist_dbusbusconfig_DATA = \
data/org.freedesktop.locale1.conf \
$(NULL)
polkitactiondir = @polkitactiondir@
dist_polkitaction_DATA = \
data/org.freedesktop.locale1.policy \
$(NULL)
pidfile = @pidfile@
do_subst = $(SED) -e 's,[@]libexecdir[@],$(libexecdir),g' \
-e 's,[@]pidfile[@],$(pidfile),g' \
$(NULL)
%.service : %.service.in
# $(do_subst) < $(srcdir)/$< > $(builddir)/$@
$(do_subst) < $< > $@
man_MANS = data/blocaled.8
AM_CPPFLAGS = \
-include $(top_builddir)/config.h \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
-DDATADIR=\""$(datadir)"\" \
-DLIBEXECDIR=\""$(libexecdir)"\" \
-DPKGDATADIR=\""$(pkgdatadir)"\" \
-DPIDFILE=\""$(pidfile)"\" \
-DLOCALECONFIG=\""$(localeconfig)"\" \
-DKEYBOARDCONFIG=\""$(keyboardconfig)"\" \
-DXKBDCONFIG=\""$(xkbdconfig)"\" \
$(BLOCALED_CFLAGS) \
-I$(top_srcdir)/src \
-I$(top_builddir)/src \
$(NULL)
LDADD = $(BLOCALED_LIBS)
libexec_PROGRAMS = blocaled
localed_built_sources = \
src/locale1-generated.c \
src/locale1-generated.h \
$(NULL)
blocaled_SOURCES = \
src/localed.c \
src/localed.h \
src/shellparser.c \
src/shellparser.h \
src/polkitasync.c \
src/polkitasync.h \
src/main.h \
src/main.c \
$(NULL)
nodist_blocaled_SOURCES = \
$(localed_built_sources) \
$(NULL)
$(localed_built_sources) : data/org.freedesktop.locale1.xml
$(AM_V_GEN)( pushd "$(builddir)/src" > /dev/null; \
$(GDBUS_CODEGEN) \
--interface-prefix org.freedesktop. \
--c-namespace BLocaled \
--generate-c-code locale1-generated \
$(abs_srcdir)/data/org.freedesktop.locale1.xml; \
popd > /dev/null )
BUILT_SOURCES = \
$(localed_built_sources) \
$(NULL)
CLEANFILES = \
$(localed_built_sources) \
$(dbusservices_DATA) \
$(NULL)