chiark / gitweb /
readahead: minor code style fixes
[elogind.git] / Makefile.am
index 77b4aa74eed2e1f9dcaee9bc104a05e66f53e103..03e28e8c347ca6d89bd1c0c62588eb81dbbcc213 100644 (file)
@@ -57,6 +57,7 @@ pkgconfigdatadir=$(datadir)/pkgconfig
 pkgconfiglibdir=$(libdir)/pkgconfig
 polkitpolicydir=$(datadir)/polkit-1/actions
 bashcompletiondir=$(sysconfdir)/bash_completion.d
+rpmmacrosdir=$(sysconfdir)/rpm
 
 # Our own, non-special dirs
 pkgsysconfdir=$(sysconfdir)/systemd
@@ -885,8 +886,12 @@ org.freedesktop.systemd1.%.xml: systemd
 pkgconfigdata_DATA = \
        src/core/systemd.pc
 
+nodist_rpmmacros_DATA = \
+       src/core/macros.systemd
+
 EXTRA_DIST += \
-       src/core/systemd.pc.in
+       src/core/systemd.pc.in \
+       src/core/macros.systemd.in
 
 # ------------------------------------------------------------------------------
 noinst_PROGRAMS += \
@@ -2372,39 +2377,24 @@ endif
 
 # ------------------------------------------------------------------------------
 if ENABLE_READAHEAD
-systemd_readahead_collect_SOURCES = \
+systemd_readahead_SOURCES = \
+       src/readahead/readahead.c \
        src/readahead/readahead-collect.c \
-       src/readahead/readahead-common.c \
-       src/readahead/readahead-common.h
-
-systemd_readahead_collect_LDADD = \
-       libsystemd-shared.la \
-       libsystemd-daemon.la \
-       libudev.la
-
-systemd_readahead_replay_SOURCES = \
        src/readahead/readahead-replay.c \
+       src/readahead/readahead-analyze.c \
        src/readahead/readahead-common.c \
        src/readahead/readahead-common.h
 
-systemd_readahead_replay_LDADD = \
+systemd_readahead_LDADD = \
        libsystemd-shared.la \
        libsystemd-daemon.la \
        libudev.la
 
-systemd_readahead_analyze_SOURCES = \
-       src/readahead/readahead-analyze.c \
-       src/readahead/readahead-common.h
-
 pkginclude_HEADERS += \
        src/systemd/sd-readahead.h
 
 rootlibexec_PROGRAMS += \
-       systemd-readahead-collect \
-       systemd-readahead-replay
-
-bin_PROGRAMS += \
-       systemd-readahead-analyze
+       systemd-readahead
 
 dist_systemunit_DATA += \
        units/systemd-readahead-drop.service \
@@ -3015,6 +3005,9 @@ sysctl.d/%: sysctl.d/%.in Makefile
 %.pc: %.pc.in Makefile
        $(SED_PROCESS)
 
+src/core/macros.%: src/core/macros.%.in Makefile
+       $(SED_PROCESS)
+
 src/%.policy.in: src/%.policy.in.in Makefile
        $(SED_PROCESS)