chiark / gitweb /
build-sys: move python helpers to tools directory
authorKarel Zak <kzak@redhat.com>
Mon, 10 Feb 2014 09:37:10 +0000 (10:37 +0100)
committerTom Gundersen <teg@jklm.no>
Mon, 10 Feb 2014 12:02:34 +0000 (13:02 +0100)
Note that make-man-rules.py is missing in EXTRA_DIST=, this patch
fixes this mistake too.

Makefile.am
tools/make-directive-index.py [moved from make-directive-index.py with 100% similarity]
tools/make-man-index.py [moved from make-man-index.py with 100% similarity]
tools/make-man-rules.py [moved from make-man-rules.py with 100% similarity]
tools/xml_helper.py [moved from xml_helper.py with 100% similarity]

index 3730e71..09a827b 100644 (file)
@@ -610,16 +610,16 @@ 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 = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
 
-update-man-list: make-man-rules.py $(XML_GLOB)
+update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
        $(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"
 
-man/systemd.index.xml: make-man-index.py $(NON_INDEX_XML_FILES)
+man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
        $(AM_V_at)$(MKDIR_P) $(dir $@)
        $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
 
-man/systemd.directives.xml: make-directive-index.py $(SOURCE_XML_FILES)
+man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
        $(AM_V_at)$(MKDIR_P) $(dir $@)
        $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
 
@@ -641,9 +641,10 @@ EXTRA_DIST += \
        $(HTML_FILES) \
        $(HTML_ALIAS) \
        $(man_MANS) \
-       make-man-index.py \
-       make-directive-index.py \
-       xml_helper.py
+       tools/make-man-index.py \
+       tools/make-directive-index.py \
+       tools/make-man-rules.py \
+       tools/xml_helper.py
 
 # ------------------------------------------------------------------------------
 noinst_LTLIBRARIES += \
similarity index 100%
rename from make-man-index.py
rename to tools/make-man-index.py
similarity index 100%
rename from make-man-rules.py
rename to tools/make-man-rules.py
similarity index 100%
rename from xml_helper.py
rename to tools/xml_helper.py