diff options
author | 2012-09-05 12:48:04 -0400 | |
---|---|---|
committer | 2012-09-05 12:51:29 -0400 | |
commit | 37d9aeb4da8169c85ef5e96eefd4b0da30dcb83a (patch) | |
tree | 599a53efb3e135b802ca14b88b235cdb89da321d /Makefile.am | |
parent | Cleanup to make valgrind happy (diff) | |
download | openrc-settingsd-37d9aeb4da8169c85ef5e96eefd4b0da30dcb83a.tar.gz openrc-settingsd-37d9aeb4da8169c85ef5e96eefd4b0da30dcb83a.tar.bz2 openrc-settingsd-37d9aeb4da8169c85ef5e96eefd4b0da30dcb83a.zip |
Add timedated implementation
Includes a chunk of copy-pasted code from systemd for dealing with RTC.
Should probably be replaced with something more glib-ish eventually.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index b0694bf..32890fb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,6 +3,7 @@ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} EXTRA_DIST = \ data/hostname1.xml \ data/locale1.xml \ + data/timedate1.xml \ $(NULL) pkgdata_DATA = \ @@ -12,6 +13,7 @@ pkgdata_DATA = \ AM_CPPFLAGS = \ -include $(top_builddir)/config.h \ -DSYSCONFDIR=\""$(sysconfdir)"\" \ + -DDATADIR=\""$(datadir)"\" \ -DLIBEXECDIR=\""$(libexecdir)"\" \ -DPKGDATADIR=\""$(pkgdatadir)"\" \ $(OPENRC_SETTINGSD_CFLAGS) \ @@ -33,13 +35,30 @@ localed_built_sources = \ src/locale1-generated.h \ $(NULL) +timedated_built_sources = \ + src/timedate1-generated.c \ + src/timedate1-generated.h \ + $(NULL) + +copypaste_sources = \ + src/copypaste/hwclock.c \ + src/copypaste/hwclock.h \ + src/copypaste/macro.h \ + src/copypaste/util.c \ + src/copypaste/util.h \ + $(NULL) + openrc_settingsd_SOURCES = \ $(hostnamed_built_sources) \ $(localed_built_sources) \ + $(timedated_built_sources) \ + $(copypaste_sources) \ src/hostnamed.c \ src/hostnamed.h \ src/localed.c \ src/localed.h \ + src/timedated.c \ + src/timedated.h \ src/bus-utils.c \ src/bus-utils.h \ src/shell-utils.c \ @@ -63,5 +82,13 @@ $(localed_built_sources) : data/locale1.xml $(srcdir)/data/locale1.xml; \ mv locale1-generated.{c,h} $(top_srcdir)/src/ ) -BUILT_SOURCES = $(hostnamed_built_sources) $(localed_built_sources) -CLEANFILES = $(hostnamed_built_sources) $(localed_built_sources) +$(timedated_built_sources) : data/timedate1.xml + ( $(GDBUS_CODEGEN) \ + --interface-prefix org.freedesktop. \ + --c-namespace OpenrcSettingsdTimedated \ + --generate-c-code timedate1-generated \ + $(srcdir)/data/timedate1.xml; \ + mv timedate1-generated.{c,h} $(top_srcdir)/src/ ) + +BUILT_SOURCES = $(hostnamed_built_sources) $(localed_built_sources) $(timedated_built_sources) +CLEANFILES = $(hostnamed_built_sources) $(localed_built_sources) $(timedated_built_sources) |