Skip to contentSkip to conversation

Makefile: add missing mkdir MANUAL_BUILDDIR

PATCH In review Stefan Hajnoczi 3 participants 3 messages Jan 20, 2020 – Jan 21, 2020 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Makefile: add missing mkdir MANUAL_BUILDDIR

The MANUAL_BUILDDIR directory is automatically created by sphinx-build for the other targets. The index.html target does not use sphinx-build so we must manually create the directory to avoid the following error:

GEN docs/built/index.html
/bin/sh: docs/built/index.html: No such file or directory

---
 Makefile | 1 +
 1 file changed, 1 insertion(+)
Makefile +1 -0
index afa5cb6548..6562b0dc97 100644
@@ -1022,6 +1022,7 @@ $(MANUAL_BUILDDIR)/interop/qemu-ga.8: $(call manual-deps,interop)
 	$(call build-manual,interop,man)
 
 $(MANUAL_BUILDDIR)/index.html: $(SRC_PATH)/docs/index.html.in qemu-version.h
+	@mkdir -p "$(MANUAL_BUILDDIR)"
 	$(call quiet-command, sed "s|@@VERSION@@|${VERSION}|g" $< >$@, \
              "GEN","$@")
 
Signature · 1 line
2.24.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 27 lines · Stefan Hajnoczi

The MANUAL_BUILDDIR directory is automatically created by sphinx-build for the other targets. The index.html target does not use sphinx-build so we must manually create the directory to avoid the following error:

GEN docs/built/index.html
/bin/sh: docs/built/index.html: No such file or directory

---
 Makefile | 1 +
 1 file changed, 1 insertion(+)
Makefile +1 -0
index afa5cb6548..6562b0dc97 100644
@@ -1022,6 +1022,7 @@ $(MANUAL_BUILDDIR)/interop/qemu-ga.8: $(call manual-deps,interop)
 	$(call build-manual,interop,man)
 
 $(MANUAL_BUILDDIR)/index.html: $(SRC_PATH)/docs/index.html.in qemu-version.h
+	@mkdir -p "$(MANUAL_BUILDDIR)"
 	$(call quiet-command, sed "s|@@VERSION@@|${VERSION}|g" $< >$@, \
              "GEN","$@")
 
Signature · 1 line
2.24.1

Fixing our issues with build,

#2 lore raw
Quoted 26 lines · Miroslav Rezanina
Quoted 24 lines · Stefan Hajnoczi

The MANUAL_BUILDDIR directory is automatically created by sphinx-build for the other targets. The index.html target does not use sphinx-build so we must manually create the directory to avoid the following error:

GEN docs/built/index.html
/bin/sh: docs/built/index.html: No such file or directory

---
 Makefile | 1 +
 1 file changed, 1 insertion(+)
Makefile +1 -0
index afa5cb6548..6562b0dc97 100644
@@ -1022,6 +1022,7 @@ $(MANUAL_BUILDDIR)/interop/qemu-ga.8: $(call manual-deps,interop)
      $(call build-manual,interop,man)
 
 $(MANUAL_BUILDDIR)/index.html: $(SRC_PATH)/docs/index.html.in qemu-version.h
+     @mkdir -p "$(MANUAL_BUILDDIR)"
      $(call quiet-command, sed "s|@@VERSION@@|${VERSION}|g" $< >$@, \
              "GEN","$@")
 
Quoted 7 lines
Quoted 3 lines

--
2.24.1

Fixing our issues with build,

Thanks; applied to master as a build-fix.

-- PMM