Skip to contentSkip to conversation

Don't install tools if $(TOOLS) is empty

Qemu-devel Thayne Harbaugh 1 participant 1 message Oct 10, 2007 Kbuild

lore
Share & tools
lore
#0 lore raw

Install will fail if $(TOOLS) is empty - which happens when only user emulation is built

Makefile +2 -0
Index: qemu/Makefile
===================================================================
@@ -67,7 +67,9 @@
 
 install: all $(if $(BUILD_DOCS),install-doc)
 	mkdir -p "$(DESTDIR)$(bindir)"
+ifneq ($(TOOLS),)
 	$(INSTALL) -m 755 -s $(TOOLS) "$(DESTDIR)$(bindir)"
+endif
 	mkdir -p "$(DESTDIR)$(datadir)"
 	for x in bios.bin vgabios.bin vgabios-cirrus.bin ppc_rom.bin \
 		video.x openbios-sparc32 pxe-ne2k_pci.bin \