Commit 697d7030 authored by Michael Tokarev's avatar Michael Tokarev

d/rules: split arch and indep builds

also do not list build-* as prereqs. for binary-*
parent f4263a5b
debian/tmp/usr/share/qemu/keymaps
pc-bios/keymaps usr/share/qemu
pc-bios/qemu-icon.bmp usr/share/qemu
pc-bios/qemu_logo_no_text.svg usr/share/qemu
......@@ -117,9 +117,7 @@ ifeq ($(enable_linux_user),enable)
endif
touch $@
build: build-arch build-indep
build-arch: b/build-stamp
build-indep:
b/build-stamp: b/configure-stamp
dh_testdir
......@@ -136,20 +134,6 @@ ifeq ($(enable_linux_user),enable)
endif
touch $@
clean: debian/control
dh_testdir
rm -rf b
find scripts/ -name '*.pyc' -delete || :
dh_clean
# define ${ai} variable to be one of -i (indep), -a (arch) or nothing (both)
ai :=
binary-indep: ai := -i
binary-indep: install
binary-arch: ai := -a
binary-arch: install
binary: install
define inst-system
mkdir -p debian/qemu-system-$1/usr/share/man/man1 debian/qemu-system-$1/usr/bin
for t in ${sysarch_$1}; do \
......@@ -167,14 +151,14 @@ ${sysarch_$1}) \
endef
install: b/build-stamp
binary-arch:
dh_testdir
dh_testroot
dh_prep
dh_prep -a
dh_installdirs -a
# system and utils install
$(MAKE) -C b/qemu DESTDIR=$(CURDIR)/debian/tmp install
$(MAKE) -C b/qemu DESTDIR=$(CURDIR)/debian/tmp install KEYMAPS=
ifeq (${enable_system},enable)
......@@ -258,29 +242,26 @@ ifeq ($(enable_linux_user),enable)
endif # enable_linux_user
# install whole thing so --list-missing works right
dh_install --list-missing
dh_install -a --list-missing
# install the rest for arch/indep as needed
dh_installdocs ${ai} -Nqemu-user-binfmt
dh_installchangelogs ${ai} -Nqemu-user-binfmt
dh_installdocs ${ai} -pqemu-user-binfmt --link-doc=qemu-user
dh_installman ${ai}
dh_installudev ${ai}
ifneq (${ai},-i) # do not run this for binary-indep
dh_installdocs -a -Nqemu-user-binfmt
dh_installchangelogs -a -Nqemu-user-binfmt
dh_installdocs -a -pqemu-user-binfmt --link-doc=qemu-user
dh_installman -a
dh_installudev -a
ifeq (${enable_system},enable)
# qemu-ifup is arch-specific
install -D debian/qemu-ifup.$(DEB_HOST_ARCH_OS) \
debian/qemu-system-common/etc/qemu-ifup
endif
dh_installinit -pqemu-guest-agent
endif
dh_link ${ai}
dh_lintian ${ai}
dh_strip ${ai}
dh_compress ${ai}
dh_fixperms ${ai}
dh_shlibdeps ${ai}
dh_installdeb ${ai}
dh_installinit -a -pqemu-guest-agent
dh_link -a
dh_lintian -a
dh_strip -a
dh_compress -a
dh_fixperms -a
dh_shlibdeps -a
dh_installdeb -a
ifeq ($(enable_linux_user),enable)
# after shlibdeps finished, grab ${shlibs:Depends} from -user package
# and transform it into Built-Using field for -user-static.
......@@ -293,9 +274,9 @@ ifeq ($(enable_linux_user),enable)
echo "built-using=$$srcs" >> debian/qemu-user-static.substvars ; \
fi
endif
dh_gencontrol ${ai}
dh_md5sums ${ai}
dh_builddeb ${ai}
dh_gencontrol -a
dh_md5sums -a
dh_builddeb -a
ifneq (,$(wildcard debian/control-in))
# only include rules for debian/control if debian/control-in is present
......@@ -307,8 +288,39 @@ debian/control: debian/control-in debian/rules
chmod -w $@
endif
build-indep:
binary-indep:
dh_testdir
dh_testroot
dh_prep -i -Xdebian/tmp
dh_install -i
rm -f debian/qemu-system-data/usr/share/qemu/keymaps/Makefile
dh_installdocs -i
dh_installchangelogs -i
dh_compress -i
dh_fixperms -i
dh_installdeb -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i
build: build-arch build-indep
binary: binary-arch binary-indep
clean: debian/control
dh_testdir
rm -rf b
find scripts/ -name '*.pyc' -delete || :
dh_clean
.PHONY: build clean binary-arch binary-indep binary build-arch build-indep build
get-orig-source:
./debian/get-orig-source.sh ${DEB_VERSION}
.PHONY: build clean binary-indep binary-arch binary install get-orig-source
.PHONY: get-orig-source
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