File xen.build-compare-doc_html.patch of Package xen
From: Olaf Hering <olaf@aepfle.de>
Date: Mon, 7 May 2018 22:37:48 +0200
Subject: build-compare doc_html
The result of $(wildcard *) is random.
Sort input files to reduce build-compare noise.
Signed-off-by: Olaf Hering <olaf@aepfle.de>
---
docs/Makefile | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -101,25 +101,25 @@ install-man-pages: man-pages
cp -R man1 $(DESTDIR)$(MANDIR)
cp -R man5 $(DESTDIR)$(MANDIR)
.PHONY: install-html
install-html: html txt figs
$(INSTALL_DIR) $(DESTDIR)$(DOCDIR)
[ ! -d html ] || cp -R html $(DESTDIR)$(DOCDIR)
.PHONY: install
install: install-man-pages install-html
html/index.html: $(DOC_HTML) $(CURDIR)/gen-html-index INDEX
- $(PERL) -w -- $(CURDIR)/gen-html-index -i INDEX html $(DOC_HTML)
+ $(PERL) -w -- $(CURDIR)/gen-html-index -i INDEX html $(sort $(DOC_HTML))
html/%.html: %.markdown
$(INSTALL_DIR) $(@D)
ifdef MARKDOWN
@echo "Running markdown to generate $*.html ... "
$(MARKDOWN) $< > $@.tmp ; \
$(call move-if-changed,$@.tmp,$@)
else
@echo "markdown not installed; skipping $*.html."
endif
html/%.txt: %.txt
@@ -143,26 +143,26 @@ ifdef POD2HTML
else
@echo "pod2html not installed; skipping $<."
endif
# For non-x86 arches exclude the subarch whole x86 arch.
$(foreach i,$(filter-out x86_32 x86_64,$(DOC_ARCHES)),html/hypercall/$(i)/index.html): EXTRA_EXCLUDE := -X arch-x86
html/hypercall/%/index.html: $(CURDIR)/xen-headers Makefile
rm -rf $(@D)
$(INSTALL_DIR) $(@D)
$(PERL) -w $(CURDIR)/xen-headers -O $(@D) \
-T 'arch-$* - Xen public headers' \
- $(patsubst %,-X arch-%,$(filter-out $*,$(DOC_ARCHES))) \
- $(patsubst %,-X xen-%,$(filter-out $*,$(DOC_ARCHES))) \
+ $(sort $(patsubst %,-X arch-%,$(filter-out $*,$(DOC_ARCHES)))) \
+ $(sort $(patsubst %,-X xen-%,$(filter-out $*,$(DOC_ARCHES)))) \
$(EXTRA_EXCLUDE) \
$(XEN_ROOT)/xen include/public include/xen/errno.h
-include $(wildcard html/hypercall/*/.deps)
txt/%.txt: %.txt
$(INSTALL_DIR) $(@D)
cp $< $@.tmp
$(call move-if-changed,$@.tmp,$@)
txt/%.txt: %.markdown
$(INSTALL_DIR) $(@D)