Commit 38954dca9ffbdfa9cf46a16d6134cc00491aba6f
1 parent
6ca957f0
Add install-doc rule. Use it when building docs.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1877 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
9 additions
and
5 deletions
Makefile
@@ -47,7 +47,15 @@ KEYMAPS=da en-gb et fr fr-ch is lt modifiers no pt-br sv \ | @@ -47,7 +47,15 @@ KEYMAPS=da en-gb et fr fr-ch is lt modifiers no pt-br sv \ | ||
47 | ar de en-us fi fr-be hr it lv nl pl ru th \ | 47 | ar de en-us fi fr-be hr it lv nl pl ru th \ |
48 | common de-ch es fo fr-ca hu ja mk nl-be pt sl tr | 48 | common de-ch es fo fr-ca hu ja mk nl-be pt sl tr |
49 | 49 | ||
50 | -install: all | 50 | +install-doc: $(DOCS) |
51 | + mkdir -p "$(DESTDIR)$(docdir)" | ||
52 | + $(INSTALL) -m 644 qemu-doc.html qemu-tech.html "$(DESTDIR)$(docdir)" | ||
53 | +ifndef CONFIG_WIN32 | ||
54 | + mkdir -p "$(DESTDIR)$(mandir)/man1" | ||
55 | + $(INSTALL) qemu.1 qemu-img.1 "$(DESTDIR)$(mandir)/man1" | ||
56 | +endif | ||
57 | + | ||
58 | +install: all $(if $(BUILD_DOCS),install-doc) | ||
51 | mkdir -p "$(DESTDIR)$(bindir)" | 59 | mkdir -p "$(DESTDIR)$(bindir)" |
52 | $(INSTALL) -m 755 -s $(TOOLS) "$(DESTDIR)$(bindir)" | 60 | $(INSTALL) -m 755 -s $(TOOLS) "$(DESTDIR)$(bindir)" |
53 | mkdir -p "$(DESTDIR)$(datadir)" | 61 | mkdir -p "$(DESTDIR)$(datadir)" |
@@ -55,11 +63,7 @@ install: all | @@ -55,11 +63,7 @@ install: all | ||
55 | video.x proll.elf linux_boot.bin; do \ | 63 | video.x proll.elf linux_boot.bin; do \ |
56 | $(INSTALL) -m 644 $(SRC_PATH)/pc-bios/$$x "$(DESTDIR)$(datadir)"; \ | 64 | $(INSTALL) -m 644 $(SRC_PATH)/pc-bios/$$x "$(DESTDIR)$(datadir)"; \ |
57 | done | 65 | done |
58 | - mkdir -p "$(DESTDIR)$(docdir)" | ||
59 | - $(INSTALL) -m 644 qemu-doc.html qemu-tech.html "$(DESTDIR)$(docdir)" | ||
60 | ifndef CONFIG_WIN32 | 66 | ifndef CONFIG_WIN32 |
61 | - mkdir -p "$(DESTDIR)$(mandir)/man1" | ||
62 | - $(INSTALL) qemu.1 qemu-img.1 "$(DESTDIR)$(mandir)/man1" | ||
63 | mkdir -p "$(DESTDIR)$(datadir)/keymaps" | 67 | mkdir -p "$(DESTDIR)$(datadir)/keymaps" |
64 | for x in $(KEYMAPS); do \ | 68 | for x in $(KEYMAPS); do \ |
65 | $(INSTALL) -m 644 $(SRC_PATH)/keymaps/$$x "$(DESTDIR)$(datadir)/keymaps"; \ | 69 | $(INSTALL) -m 644 $(SRC_PATH)/keymaps/$$x "$(DESTDIR)$(datadir)/keymaps"; \ |