From: Andrew Cooper Date: Mon, 20 Apr 2015 10:49:23 +0000 (+0100) Subject: docs/build: Do not use move-if-changed X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~3382 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c4ade4a052738bbc6e4623ab29d45cf734ac462a;p=xen.git docs/build: Do not use move-if-changed Nothing expensive depends on these results. Also prefer $(INSTALL_DATA) over cp to get correct file attributes (see fb33b2b "docs: make .txt files over-writable when building from r/o sources") Signed-off-by: Andrew Cooper CC: Ian Campbell CC: Ian Jackson CC: Wei Liu Acked-by: Ian Campbell --- diff --git a/docs/Makefile b/docs/Makefile index 0b458f1651..d31b36facc 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -116,8 +116,7 @@ html/index.html: $(DOC_HTML) $(CURDIR)/gen-html-index INDEX html/%.html: %.markdown $(INSTALL_DIR) $(@D) ifdef MARKDOWN - $(MARKDOWN) $< > $@.tmp ; \ - $(call move-if-changed,$@.tmp,$@) + $(MARKDOWN) $< > $@ else @echo "markdown not installed; skipping $*.html." endif @@ -129,8 +128,7 @@ html/%.txt: %.txt html/man/%.1.html: man/%.pod.1 Makefile $(INSTALL_DIR) $(@D) ifdef POD2HTML - $(POD2HTML) --infile=$< --outfile=$@.tmp - $(call move-if-changed,$@.tmp,$@) + $(POD2HTML) --infile=$< --outfile=$@ else @echo "pod2html not installed; skipping $<." endif @@ -138,8 +136,7 @@ endif html/man/%.5.html: man/%.pod.5 Makefile $(INSTALL_DIR) $(@D) ifdef POD2HTML - $(POD2HTML) --infile=$< --outfile=$@.tmp - $(call move-if-changed,$@.tmp,$@) + $(POD2HTML) --infile=$< --outfile=$@ else @echo "pod2html not installed; skipping $<." endif @@ -161,19 +158,16 @@ html/hypercall/%/index.html: $(CURDIR)/xen-headers Makefile txt/%.txt: %.txt $(INSTALL_DIR) $(@D) - cp $< $@.tmp - $(call move-if-changed,$@.tmp,$@) + $(INSTALL_DATA) $< $@ txt/%.txt: %.markdown $(INSTALL_DIR) $(@D) - cp $< $@.tmp - $(call move-if-changed,$@.tmp,$@) + $(INSTALL_DATA) $< $@ txt/man/%.1.txt: man/%.pod.1 Makefile $(INSTALL_DIR) $(@D) ifdef POD2TEXT - $(POD2TEXT) $< $@.tmp - $(call move-if-changed,$@.tmp,$@) + $(POD2TEXT) $< $@ else @echo "pod2text not installed; skipping $<." endif @@ -181,8 +175,7 @@ endif txt/man/%.5.txt: man/%.pod.5 Makefile $(INSTALL_DIR) $(@D) ifdef POD2TEXT - $(POD2TEXT) $< $@.tmp - $(call move-if-changed,$@.tmp,$@) + $(POD2TEXT) $< $@ else @echo "pod2text not installed; skipping $<." endif