summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2015-05-28 12:03:17 +0200
committerMartin Pitt <martin.pitt@ubuntu.com>2015-05-29 12:21:44 +0200
commite37f6d61349bf7a4e158abbad768867ba670828a (patch)
tree39cdf7e9894edf71137b7ec7d7101405a11ada16 /Makefile.am
parent6096d9ccc3f0b963010a47febce7e44c8632c23b (diff)
build-sys: Stop depending on current configure options for EXTRA_DIST
Consistently move EXTRA_DIST out of conditional blocks. This would have produced incomplete dist tarballs when being run in a built tree with not every feature enabled, which can cause broken dist tarballs.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am99
1 files changed, 46 insertions, 53 deletions
diff --git a/Makefile.am b/Makefile.am
index e18bb5cd00..f23bd0cf2f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -722,12 +722,6 @@ man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE
$(AM_V_at)$(MKDIR_P) $(dir $@)
$(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
-EXTRA_DIST += \
- man/systemd.index.xml \
- man/index.html \
- man/systemd.directives.xml \
- man/glib-event-glue.c
-
CLEANFILES += \
man/systemd.index.xml \
man/systemd.directives.xml
@@ -743,7 +737,12 @@ EXTRA_DIST += \
$(man_MANS) \
tools/make-man-index.py \
tools/make-directive-index.py \
- tools/xml_helper.py
+ tools/xml_helper.py \
+ man/systemd.index.xml \
+ man/index.html \
+ man/systemd.directives.xml \
+ man/glib-event-glue.c \
+ $(NULL)
# ------------------------------------------------------------------------------
noinst_LTLIBRARIES += \
@@ -2312,15 +2311,15 @@ nodist_sysusers_DATA = \
sysusers.d/systemd.conf \
sysusers.d/basic.conf
+INSTALL_DIRS += \
+ $(sysusersdir)
+endif
+
EXTRA_DIST += \
units/systemd-sysusers.service.in \
sysusers.d/systemd.conf.m4 \
sysusers.d/basic.conf.in
-INSTALL_DIRS += \
- $(sysusersdir)
-endif
-
# ------------------------------------------------------------------------------
dist_factory_etc_DATA = \
factory/etc/nsswitch.conf
@@ -2349,13 +2348,13 @@ rootbin_PROGRAMS += \
nodist_systemunit_DATA += \
units/systemd-firstboot.service
-EXTRA_DIST += \
- units/systemd-firstboot.service.in
-
SYSINIT_TARGET_WANTS += \
systemd-firstboot.service
endif
+EXTRA_DIST += \
+ units/systemd-firstboot.service.in
+
# ------------------------------------------------------------------------------
systemd_machine_id_setup_SOURCES = \
src/machine-id-setup/machine-id-setup-main.c \
@@ -2486,11 +2485,6 @@ systemd_hibernate_resume_generator_LDADD = \
libsystemd-label.la \
libsystemd-shared.la
-EXTRA_DIST += \
- units/systemd-hibernate.service.in \
- units/systemd-hibernate-resume@.service.in \
- units/systemd-hybrid-sleep.service.in
-
dist_systemunit_DATA += \
units/hibernate.target \
units/hybrid-sleep.target
@@ -2501,6 +2495,11 @@ nodist_systemunit_DATA += \
units/systemd-hybrid-sleep.service
endif
+EXTRA_DIST += \
+ units/systemd-hibernate.service.in \
+ units/systemd-hibernate-resume@.service.in \
+ units/systemd-hybrid-sleep.service.in
+
# ------------------------------------------------------------------------------
if ENABLE_EFI
systemgenerator_PROGRAMS += \
@@ -2686,7 +2685,6 @@ $(stub): $(stub_solib)
# ------------------------------------------------------------------------------
CLEANFILES += test-efi-disk.img
-EXTRA_DIST += test/test-efi-create-disk.sh
test-efi-disk.img: $(systemd_boot) $(stub) test/test-efi-create-disk.sh
$(AM_V_GEN)test/test-efi-create-disk.sh
@@ -2696,6 +2694,8 @@ test-efi: test-efi-disk.img
endif
endif
+EXTRA_DIST += test/test-efi-create-disk.sh
+
# ------------------------------------------------------------------------------
if HAVE_BLKID
systemgenerator_PROGRAMS += \
@@ -3941,11 +3941,6 @@ dist_udevhwdb_DATA = \
hwdb/70-pointingstick.hwdb \
hwdb/70-touchpad.hwdb
-EXTRA_DIST += \
- units/systemd-hwdb-update.service.in \
- hwdb/ids-update.pl \
- hwdb/sdio.ids
-
SYSINIT_TARGET_WANTS += \
systemd-hwdb-update.service
@@ -3961,6 +3956,11 @@ hwdb-remove-hook:
-test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
endif
+EXTRA_DIST += \
+ units/systemd-hwdb-update.service.in \
+ hwdb/ids-update.pl \
+ hwdb/sdio.ids
+
# ------------------------------------------------------------------------------
TESTS += \
test/udev-test.pl \
@@ -4358,9 +4358,6 @@ dist_systemunit_DATA += \
nodist_systemunit_DATA += \
units/systemd-journal-remote.service
-EXTRA_DIST += \
- units/systemd-journal-remote.service.in
-
journal-remote-install-hook: journal-install-hook
-$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
-chown 0:0 $(DESTDIR)/var/log/journal/remote
@@ -4374,6 +4371,7 @@ nodist_pkgsysconf_DATA += \
src/journal-remote/journal-remote.conf
EXTRA_DIST += \
+ units/systemd-journal-remote.service.in \
src/journal-remote/journal-remote.conf.in
endif
@@ -4400,15 +4398,14 @@ systemd_journal_upload_LDADD = \
nodist_systemunit_DATA += \
units/systemd-journal-upload.service
-EXTRA_DIST += \
- units/systemd-journal-upload.service.in
-
nodist_pkgsysconf_DATA += \
src/journal-remote/journal-upload.conf
+endif
+
EXTRA_DIST += \
+ units/systemd-journal-upload.service.in \
src/journal-remote/journal-upload.conf.in
-endif
# using _CFLAGS = in the conditional below would suppress AM_CFLAGS
journalctl_CFLAGS = \
@@ -4956,10 +4953,10 @@ dist_pkgsysconf_DATA += \
nodist_systemunit_DATA += \
units/systemd-bootchart.service
+endif
EXTRA_DIST += \
units/systemd-bootchart.service.in
-endif
# ------------------------------------------------------------------------------
if ENABLE_QUOTACHECK
@@ -5428,9 +5425,6 @@ SYSTEM_UNIT_ALIASES += \
BUSNAMES_TARGET_WANTS += \
org.freedesktop.machine1.busname
-EXTRA_DIST += \
- units/systemd-machined.service.in
-
libnss_mymachines_la_SOURCES = \
src/nss-mymachines/nss-mymachines.sym \
src/nss-mymachines/nss-mymachines.c
@@ -5453,6 +5447,9 @@ lib_LTLIBRARIES += \
endif
+EXTRA_DIST += \
+ units/systemd-machined.service.in
+
# ------------------------------------------------------------------------------
if ENABLE_IMPORTD
@@ -5580,9 +5577,6 @@ dist_rootlibexec_DATA = \
nodist_systemunit_DATA += \
units/systemd-importd.service
-EXTRA_DIST += \
- units/systemd-importd.service.in
-
dist_systemunit_DATA_busnames += \
units/org.freedesktop.import1.busname
@@ -5630,6 +5624,11 @@ endif
endif
+EXTRA_DIST += \
+ units/systemd-importd.service.in \
+ src/resolve/resolved.conf.in
+
+
# ------------------------------------------------------------------------------
if ENABLE_RESOLVED
systemd_resolved_SOURCES = \
@@ -5703,9 +5702,6 @@ dist_dbuspolicy_DATA += \
dist_dbussystemservice_DATA += \
src/resolve/org.freedesktop.resolve1.service
-EXTRA_DIST += \
- units/systemd-resolved.service.m4.in
-
SYSTEM_UNIT_ALIASES += \
systemd-resolved.service dbus-org.freedesktop.resolve1.service
@@ -5718,9 +5714,6 @@ GENERAL_ALIASES += \
nodist_pkgsysconf_DATA += \
src/resolve/resolved.conf
-EXTRA_DIST += \
- src/resolve/resolved.conf.in
-
tests += \
test-dns-domain
@@ -5785,6 +5778,9 @@ rootlibexec_PROGRAMS += \
endif
+EXTRA_DIST += \
+ units/systemd-resolved.service.m4.in
+
# ------------------------------------------------------------------------------
if ENABLE_NETWORKD
rootlibexec_PROGRAMS += \
@@ -5948,13 +5944,12 @@ BUSNAMES_TARGET_WANTS += \
gperf_gperf_sources += \
src/network/networkd-network-gperf.gperf \
src/network/networkd-netdev-gperf.gperf
+endif
EXTRA_DIST += \
units/systemd-networkd.service.m4.in \
units/systemd-networkd-wait-online.service.in
-endif
-
# ------------------------------------------------------------------------------
if ENABLE_LOGIND
systemd_logind_SOURCES = \
@@ -6179,14 +6174,14 @@ rootlibexec_PROGRAMS += \
nodist_systemunit_DATA += \
units/systemd-user-sessions.service
-EXTRA_DIST += \
- units/systemd-user-sessions.service.in
-
MULTI_USER_TARGET_WANTS += \
systemd-user-sessions.service
endif
+EXTRA_DIST += \
+ units/systemd-user-sessions.service.in
+
# ------------------------------------------------------------------------------
if HAVE_PYTHON_DEVEL
@@ -6348,9 +6343,6 @@ clean-python:
# ------------------------------------------------------------------------------
if ENABLE_COMPAT_LIBS
-EXTRA_DIST += \
- src/compat-libs/linkwarning.h
-
libsystemd-%.c: src/compat-libs/libsystemd-%.sym
$(AM_V_at)$(MKDIR_P) $(dir $@)
$(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
@@ -6460,6 +6452,7 @@ UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
endif
EXTRA_DIST += \
+ src/compat-libs/linkwarning.h \
src/compat-libs/libsystemd-journal.pc.in \
src/compat-libs/libsystemd-login.pc.in \
src/compat-libs/libsystemd-id128.pc.in \