]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
build-sys: don't dist man/systemd.directives.xml 282/head
authorMartin Pitt <martin.pitt@ubuntu.com>
Thu, 18 Jun 2015 06:42:15 +0000 (08:42 +0200)
committerMartin Pitt <martin.pitt@ubuntu.com>
Thu, 18 Jun 2015 07:51:37 +0000 (09:51 +0200)
It depends on man/custom-entities.ent which is (and needs to be) a built file,
so we need to always build man/systemd.directives.xml as well.

We also need to drop this from update-man-list so that it doesn't get disted
from Makefile-man.am.

Fixes distcheck failure.

https://github.com/systemd/systemd/issues/215

Makefile-man.am
Makefile.am

index 7d31800345605a90b3699f21cb836a03c83a2744..76c938983542b2d0b3ecd3040c02d1e431473acc 100644 (file)
@@ -2142,10 +2142,8 @@ EXTRA_DIST += \
        man/systemd-vconsole-setup.service.xml \
        man/systemd.automount.xml \
        man/systemd.device.xml \
-       man/systemd.directives.xml \
        man/systemd.exec.xml \
        man/systemd.generator.xml \
-       man/systemd.index.xml \
        man/systemd.journal-fields.xml \
        man/systemd.kill.xml \
        man/systemd.link.xml \
index ba7f79b9c60f0687ec8202859ef1464d31385c18..532d5eeb861497fb4a59f69fe4099b97ecca19ce 100644 (file)
@@ -700,11 +700,10 @@ noinst_DATA += \
 CLEANFILES += \
        man/index.html
 
-XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
 SOURCE_XML_FILES = ${patsubst %,$(top_srcdir)/%,$(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))}
 
-update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
+update-man-list: $(top_srcdir)/tools/make-man-rules.py $(SOURCE_XML_FILES)
        $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
        $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
        @echo "Makefile-man.am has been regenerated"
@@ -726,7 +725,7 @@ endif
 endif
 
 EXTRA_DIST += \
-       $(XML_FILES) \
+       $(filter-out man/systemd.directives.xml,$(XML_FILES)) \
        $(HTML_FILES) \
        $(HTML_ALIAS) \
        $(man_MANS) \
@@ -735,7 +734,6 @@ EXTRA_DIST += \
        tools/xml_helper.py \
        man/systemd.index.xml \
        man/index.html \
-       man/systemd.directives.xml \
        man/glib-event-glue.c \
        $(NULL)