Skip to contentSkip to conversation

Don't install HTML if its not generated

PATCH In review Chris Bagwell 1 participant 2 messages Apr 26, 2006 – Apr 27, 2006 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Don't install HTML if its not generated

Hi all,

There was a patch added to CVS that detects if tools exist to build documentation. This helped me during the compile phase since I don't have those tools installed.

I had a failure during the install phase because it still tried to install the non-existent docs.

Following patch fixed that for me.

diff -r1.97 Makefile
58a59

Quoted 1 line

ifdef BUILD_DOCS

59a61

Quoted 1 line

endif

Chris

#1 lore raw

I included a context diff this time to make it easier to see the problem.

Chris

Makefile 27 Apr 2006 02:09:07 -0000 renamed from Makefile 23 Apr 2006 17:57:59 -0000 1.97 +0 -0
@@ -56,7 +56,9 @@
               $(INSTALL) -m 644 $(SRC_PATH)/pc-bios/$$x 

"$(DESTDIR)$(datadir)"; \
done
+ifdef BUILD_DOCS

       mkdir -p "$(DESTDIR)$(docdir)"
       $(INSTALL) -m 644 qemu-doc.html  qemu-tech.html 
"$(DESTDIR)$(docdir)"
+endif
ifndef CONFIG_WIN32
       mkdir -p "$(DESTDIR)$(mandir)/man1"
       $(INSTALL) qemu.1 qemu-img.1 "$(DESTDIR)$(mandir)/man1"