Don't install HTML if its not generated
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
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"