better packaging support

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@797 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
bellard 2004-05-12 18:54:06 +00:00
parent 44c513c4c9
commit 7efa43875d
2 changed files with 17 additions and 17 deletions

View File

@ -45,9 +45,9 @@ install: all
ifndef CONFIG_WIN32 ifndef CONFIG_WIN32
install -m 755 -s $(TOOLS) "$(bindir)" install -m 755 -s $(TOOLS) "$(bindir)"
endif endif
mkdir -p "$(sharedir)" mkdir -p "$(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/linux_boot.bin "$(sharedir)" pc-bios/linux_boot.bin "$(datadir)"
mkdir -p "$(docdir)" mkdir -p "$(docdir)"
install -m 644 qemu-doc.html qemu-tech.html "$(docdir)" install -m 644 qemu-doc.html qemu-tech.html "$(docdir)"
ifndef CONFIG_WIN32 ifndef CONFIG_WIN32
@ -85,16 +85,16 @@ tar:
# generate a binary distribution # generate a binary distribution
tarbin: tarbin:
( cd / ; tar zcvf ~/qemu-$(VERSION)-i386.tar.gz \ ( cd / ; tar zcvf ~/qemu-$(VERSION)-i386.tar.gz \
$(prefix)/bin/qemu $(prefix)/bin/qemu-fast \ $(bindir)/qemu $(bindir)/qemu-fast \
$(prefix)/bin/qemu-system-ppc \ $(bindir)/qemu-system-ppc \
$(prefix)/bin/qemu-i386 \ $(bindir)/qemu-i386 \
$(prefix)/bin/qemu-arm \ $(bindir)/qemu-arm \
$(prefix)/bin/qemu-sparc \ $(bindir)/qemu-sparc \
$(prefix)/bin/qemu-ppc \ $(bindir)/qemu-ppc \
$(prefix)/bin/qemu-mkcow \ $(bindir)/qemu-mkcow \
$(sharedir)/bios.bin \ $(datadir)/bios.bin \
$(sharedir)/vgabios.bin \ $(datadir)/vgabios.bin \
$(sharedir)/linux_boot.bin \ $(datadir)/linux_boot.bin \
$(docdir)/qemu-doc.html \ $(docdir)/qemu-doc.html \
$(docdir)/qemu-tech.html \ $(docdir)/qemu-tech.html \
$(mandir)/man1/qemu.1 $(mandir)/man1/qemu-mkcow.1 ) $(mandir)/man1/qemu.1 $(mandir)/man1/qemu-mkcow.1 )

10
configure vendored
View File

@ -265,7 +265,7 @@ if test -z "$prefix" ; then
prefix="/c/Program Files/Qemu" prefix="/c/Program Files/Qemu"
fi fi
mandir="$prefix" mandir="$prefix"
sharedir="$prefix" datadir="$prefix"
docdir="$prefix" docdir="$prefix"
bindir="$prefix" bindir="$prefix"
else else
@ -273,13 +273,13 @@ if test -z "$prefix" ; then
prefix="/usr/local" prefix="/usr/local"
fi fi
mandir="$prefix/share/man" mandir="$prefix/share/man"
sharedir="$prefix/share/qemu" datadir="$prefix/share/qemu"
docdir="$prefix/share/doc/qemu" docdir="$prefix/share/doc/qemu"
bindir="$prefix/bin" bindir="$prefix/bin"
fi fi
echo "Install prefix $prefix" echo "Install prefix $prefix"
echo "BIOS directory $sharedir" echo "BIOS directory $datadir"
echo "binary directory $bindir" echo "binary directory $bindir"
if test "$mingw32" = "no" ; then if test "$mingw32" = "no" ; then
echo "Manual directory $mandir" echo "Manual directory $mandir"
@ -315,9 +315,9 @@ echo "/* Automatically generated by configure - do not modify */" > $config_h
echo "prefix=$prefix" >> $config_mak echo "prefix=$prefix" >> $config_mak
echo "bindir=$bindir" >> $config_mak echo "bindir=$bindir" >> $config_mak
echo "mandir=$mandir" >> $config_mak echo "mandir=$mandir" >> $config_mak
echo "sharedir=$sharedir" >> $config_mak echo "datadir=$datadir" >> $config_mak
echo "docdir=$docdir" >> $config_mak echo "docdir=$docdir" >> $config_mak
echo "#define CONFIG_QEMU_SHAREDIR \"$sharedir\"" >> $config_h echo "#define CONFIG_QEMU_SHAREDIR \"$datadir\"" >> $config_h
echo "MAKE=$make" >> $config_mak echo "MAKE=$make" >> $config_mak
echo "CC=$cc" >> $config_mak echo "CC=$cc" >> $config_mak
if test "$have_gcc3_options" = "yes" ; then if test "$have_gcc3_options" = "yes" ; then