Commit 1236cab7 authored by pbrook's avatar pbrook
Browse files

DESTDIR makefile support.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1806 c046a42c-6fe2-441c-8c8c-71466251a162
parent 358bf29e
...@@ -44,21 +44,21 @@ ar de en-us fi fr-be hr it lv nl pl ru th \ ...@@ -44,21 +44,21 @@ ar de en-us fi fr-be hr it lv nl pl ru th \
common de-ch es fo fr-ca hu ja mk nl-be pt sl tr common de-ch es fo fr-ca hu ja mk nl-be pt sl tr
install: all install: all
mkdir -p "$(bindir)" mkdir -p "$(DESTDIR)$(bindir)"
install -m 755 -s $(TOOLS) "$(bindir)" install -m 755 -s $(TOOLS) "$(DESTDIR)$(bindir)"
mkdir -p "$(datadir)" mkdir -p "$(DESTDIR)$(datadir)"
install -m 644 pc-bios/bios.bin pc-bios/vgabios.bin \ install -m 644 pc-bios/bios.bin pc-bios/vgabios.bin \
pc-bios/vgabios-cirrus.bin \ pc-bios/vgabios-cirrus.bin \
pc-bios/ppc_rom.bin pc-bios/video.x \ pc-bios/ppc_rom.bin pc-bios/video.x \
pc-bios/proll.elf \ pc-bios/proll.elf \
pc-bios/linux_boot.bin "$(datadir)" pc-bios/linux_boot.bin "$(DESTDIR)$(datadir)"
mkdir -p "$(docdir)" mkdir -p "$(DESTDIR)$(docdir)"
install -m 644 qemu-doc.html qemu-tech.html "$(docdir)" install -m 644 qemu-doc.html qemu-tech.html "$(DESTDIR)$(docdir)"
ifndef CONFIG_WIN32 ifndef CONFIG_WIN32
mkdir -p "$(mandir)/man1" mkdir -p "$(DESTDIR)$(mandir)/man1"
install qemu.1 qemu-img.1 "$(mandir)/man1" install qemu.1 qemu-img.1 "$(DESTDIR)$(mandir)/man1"
mkdir -p "$(datadir)/keymaps" mkdir -p "$(DESTDIR)$(datadir)/keymaps"
install -m 644 $(addprefix keymaps/,$(KEYMAPS)) "$(datadir)/keymaps" install -m 644 $(addprefix keymaps/,$(KEYMAPS)) "$(DESTDIR)$(datadir)/keymaps"
endif endif
for d in $(TARGET_DIRS); do \ for d in $(TARGET_DIRS); do \
$(MAKE) -C $$d $@ || exit 1 ; \ $(MAKE) -C $$d $@ || exit 1 ; \
......
...@@ -470,7 +470,7 @@ clean: ...@@ -470,7 +470,7 @@ clean:
install: all install: all
ifneq ($(PROGS),) ifneq ($(PROGS),)
install -m 755 -s $(PROGS) "$(bindir)" install -m 755 -s $(PROGS) "$(DESTDIR)$(bindir)"
endif endif
ifneq ($(wildcard .depend),) ifneq ($(wildcard .depend),)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment