summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-07-12 01:11:27 +0200
committerLennart Poettering <lennart@poettering.net>2011-07-12 01:11:40 +0200
commit9356a6c656357fe67b310cbbb270c6ccd1048e82 (patch)
tree9b31b5b2ea15f0db23cd493a8004f05877d84d64 /Makefile.am
parent7a41c61168632501489a4d054619b86f529a02e7 (diff)
build-sys: fix make distcheck
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am26
1 files changed, 17 insertions, 9 deletions
diff --git a/Makefile.am b/Makefile.am
index 96e8838669..e5eeda393f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -411,7 +411,6 @@ EXTRA_DIST = \
units/user@.service.in \
systemd.pc.in \
introspect.awk \
- src/org.freedesktop.systemd1.policy.in \
src/73-seat-late.rules.in
if ENABLE_BINFMT
@@ -475,17 +474,26 @@ dist_doc_DATA = \
pkgconfigdata_DATA = \
systemd.pc
-nodist_polkitpolicy_DATA = \
- src/org.freedesktop.systemd1.policy
-
-dist_polkitpolicy_in_files = \
+# Passed through intltool only
+polkitpolicy_in_files = \
src/org.freedesktop.hostname1.policy.in \
src/org.freedesktop.locale1.policy.in \
src/org.freedesktop.timedate1.policy.in \
src/org.freedesktop.login1.policy.in
+# First passed through sed, followed by intltool
+polkitpolicy_in_in_files = \
+ src/org.freedesktop.systemd1.policy.in.in
+
+nodist_polkitpolicy_DATA = \
+ $(polkitpolicy_in_files:.policy.in=.policy) \
+ $(polkitpolicy_in_files:.policy.in.in=.policy)
+
+EXTRA_DIST += \
+ $(polkitpolicy_in_files) \
+ $(polkitpolicy_in_in_files)
+
@INTLTOOL_POLICY_RULE@
-polkitpolicy_DATA = $(dist_polkitpolicy_in_files:.policy.in=.policy)
noinst_LTLIBRARIES = \
libsystemd-basic.la \
@@ -1357,7 +1365,7 @@ man/%: man/%.in Makefile
%.pc: %.pc.in Makefile
$(SED_PROCESS)
-src/%.policy: src/%.policy.in Makefile
+src/%.policy.in: src/%.policy.in.in Makefile
$(SED_PROCESS)
src/%.rules: src/%.rules.in Makefile
@@ -1383,8 +1391,8 @@ CLEANFILES = \
$(nodist_man_MANS) \
${XML_IN_FILES:.xml.in=.html} \
$(pkgconfigdata_DATA) \
- $(polkitpolicy_DATA) \
- src/org.freedesktop.systemd1.policy
+ $(nodist_polkitpolicy_DATA) \
+ src/73-seat-late.rules
if HAVE_VALAC
CLEANFILES += \