Commit 58f8aead106a5c8a4b5fa54c0be7cb6d19dbfbbc

Authored by aliguori
1 parent aeed97c4

buildsytem: consistently use install (Christoph Egger)

attached patch makes qemu use install consistently.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7177 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 2 changed files with 15 additions and 12 deletions
Makefile
... ... @@ -255,30 +255,30 @@ BLOBS=
255 255 endif
256 256  
257 257 install-doc: $(DOCS)
258   - mkdir -p "$(DESTDIR)$(docdir)"
259   - $(INSTALL) -m 644 qemu-doc.html qemu-tech.html "$(DESTDIR)$(docdir)"
  258 + $(INSTALL_DIR) "$(DESTDIR)$(docdir)"
  259 + $(INSTALL_DATA) qemu-doc.html qemu-tech.html "$(DESTDIR)$(docdir)"
260 260 ifndef CONFIG_WIN32
261   - mkdir -p "$(DESTDIR)$(mandir)/man1"
262   - $(INSTALL) -m 644 qemu.1 qemu-img.1 "$(DESTDIR)$(mandir)/man1"
263   - mkdir -p "$(DESTDIR)$(mandir)/man8"
264   - $(INSTALL) -m 644 qemu-nbd.8 "$(DESTDIR)$(mandir)/man8"
  261 + $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man1"
  262 + $(INSTALL_DATA) qemu.1 qemu-img.1 "$(DESTDIR)$(mandir)/man1"
  263 + $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man8"
  264 + $(INSTALL_DATA) qemu-nbd.8 "$(DESTDIR)$(mandir)/man8"
265 265 endif
266 266  
267 267 install: all $(if $(BUILD_DOCS),install-doc)
268   - mkdir -p "$(DESTDIR)$(bindir)"
  268 + $(INSTALL_DIR) "$(DESTDIR)$(bindir)"
269 269 ifneq ($(TOOLS),)
270   - $(INSTALL) -m 755 $(STRIP_OPT) $(TOOLS) "$(DESTDIR)$(bindir)"
  270 + $(INSTALL_PROG) $(STRIP_OPT) $(TOOLS) "$(DESTDIR)$(bindir)"
271 271 endif
272 272 ifneq ($(BLOBS),)
273   - mkdir -p "$(DESTDIR)$(datadir)"
  273 + $(INSTALL_DIR) "$(DESTDIR)$(datadir)"
274 274 set -e; for x in $(BLOBS); do \
275   - $(INSTALL) -m 644 $(SRC_PATH)/pc-bios/$$x "$(DESTDIR)$(datadir)"; \
  275 + $(INSTALL_DATA) $(SRC_PATH)/pc-bios/$$x "$(DESTDIR)$(datadir)"; \
276 276 done
277 277 endif
278 278 ifndef CONFIG_WIN32
279   - mkdir -p "$(DESTDIR)$(datadir)/keymaps"
  279 + $(INSTALL_DIR) "$(DESTDIR)$(datadir)/keymaps"
280 280 set -e; for x in $(KEYMAPS); do \
281   - $(INSTALL) -m 644 $(SRC_PATH)/keymaps/$$x "$(DESTDIR)$(datadir)/keymaps"; \
  281 + $(INSTALL_DATA) $(SRC_PATH)/keymaps/$$x "$(DESTDIR)$(datadir)/keymaps"; \
282 282 done
283 283 endif
284 284 for d in $(TARGET_DIRS); do \
... ...
configure
... ... @@ -1339,6 +1339,9 @@ echo &quot;docdir=\${prefix}$docsuffix&quot; &gt;&gt; $config_mak
1339 1339 echo "#define CONFIG_QEMU_SHAREDIR \"$prefix$datasuffix\"" >> $config_h
1340 1340 echo "MAKE=$make" >> $config_mak
1341 1341 echo "INSTALL=$install" >> $config_mak
  1342 +echo "INSTALL_DIR=$install -d -m0755 -p" >> $config_mak
  1343 +echo "INSTALL_DATA=$install -m0644 -p" >> $config_mak
  1344 +echo "INSTALL_PROG=$install -m0755 -p" >> $config_mak
1342 1345 echo "CC=$cc" >> $config_mak
1343 1346 echo "HOST_CC=$host_cc" >> $config_mak
1344 1347 echo "AR=$ar" >> $config_mak
... ...