rules revision 7c205843b5f25329b7bac4cb41e4c55a21c7aafe
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#!/usr/bin/make -f
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Copyright (C) 2006-2010 Oracle Corporation
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# available from http://www.virtualbox.org. This file is free software;
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# you can redistribute it and/or modify it under the terms of the GNU
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# General Public License as published by the Free Software Foundation,
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# distribution. VirtualBox OSE is distributed in the hope that it will
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# be useful, but WITHOUT ANY WARRANTY of any kind.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# NOTE: if you make changes to this file, please check if the updates should
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# be also applied to the publicly visible debian/rules file.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#export DH_VERBOSE=1
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncexport DH_COMPAT=4
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# possible overrides:
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# OSE=1 force VBOX_OSE
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# NOPARALLEL=1 compile with -j1
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# LINUX=<dir> compile vboxdrv against Linux found in <dir>
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# VERBOSE=1 verbose build
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# DEBUG=1 debug build
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# NOSUBVER=1 disable generation of the sub-version field (which is
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# either the subversion rev [if available] or the build date)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# NODOCS=1 don't build docs, use precompiled UserManual.pdf and
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# VirtualBox.chm from $HOME
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# NOMODS=1 don't build any module
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# NOQT=1 don't build the Qt GUI
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# EFI include the EFI binary from prebuild
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# VERSUFFIX=<suffix> set a particular package version suffix (e.g. _customer)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# HEADLESS=1 build the headless version
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# NOWEBSVC=1 don't build the webservice API, default for OSE
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# STAGEDISO=<path> don't build the VBoxAdditions, use the precompiled .iso
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# BLEEDING_EDGE=xyz
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncpackage := virtualbox
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncverpkg := virtualbox-3.2
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsynccurrent := $(shell pwd)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncvboxroot := $(shell cd ../../../..; pwd)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncpkgdir := $(shell cd ../../../../..; pwd)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncbuilddir := $(current)/debian/builddir
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncmoddir := $(current)/debian/modules
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncprefix := $(current)/debian/$(verpkg)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncarch := $(shell dpkg --print-architecture)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncverfile := $(builddir)/version-generated.mk
d02610fd604cc8ab4cccf7e3fa510c06cb728ff2vboxsyncose := $(if $(OSE),1,$(if $(wildcard $(vboxroot)/src/VBox/RDP/server),,1))
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync-include $(vboxroot)/SVN_REVISION
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncsvnrev :=$(if $(svn_revision),$(svn_revision),0)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncNOMODS ?= $(ose)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncNOQT ?= $(HEADLESS)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncNOWEBSVC ?= $(ose)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncNOWINE := $(if $(NODOCS),$(if $(STAGEDISO),1,),)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncifneq ($(wildcard $(verfile)),)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncinclude $(verfile)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncver := $(VBOX_VERSION_STRING)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncsvnver := $(if $(NOSUBVER),,$(if $(svn_revision),-$(svn_revision),$(shell if \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync svn info > /dev/null 2>&1; then \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync svn info|sed -e "s/^Revision: \(.*\)/-\1/;t;d"; else \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync date +"-%Y%m%d"; fi)))
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncdebver :=$(subst _ALPHA,~alpha,$(subst _BETA,~beta,$(ver)))$(svnver)$(if \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(BLEEDING_EDGE),-$(BLEEDING_EDGE),)$(VERSUFFIX)$(if \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(HEADLESS),_headless,)$(if $(DEBUG),_dbg,)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncarchdir := $(prefix)/opt/VirtualBox-$(ver)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncendif
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncifneq ($(STAGEDISO),)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync ifeq ($(wildcard $(STAGEDISO)/VBoxGuestAdditions.iso),)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(error STAGEDISO='$(STAGEDISO)/VBoxGuestAdditions.iso' not found)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync endif
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncendif
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncdebrel := $(if $(shell which lsb_release),_$(shell lsb_release -si)_$(shell lsb_release -sc),unknown)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# shipping Linux kernel modules with bleeding-edge releases doesn't make sense
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncinstmod := $(if $(filter _Ubuntu_lucid _Debian_sid,$(debrel)),,1)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncifneq ($(MAKECMDGOALS),clean)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync debdist := $(strip $(shell grep $(debrel) $(current)/distributions_deb | cut -d'=' -f2))
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync ifeq ($(debdist),)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(error package distribution not detected (debrel=$(debrel)))
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync endif
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncendif
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Locations of custom built Qt libraries (see below)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncqtstdc5 := /home/vbox/Qt-4.4.3-stdc++5-$(arch)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncqtstdc6 := /home/vbox/Qt-4.4.3-stdc++6-$(arch)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsynccfg_flags := $(if $(NOQT),--disable-qt,) \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(ose),--ose,) $(if $(LINUX),--with-linux=$(LINUX),) \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(filter _Debian_etch,$(debrel)),$(if $(ose),,--build-libcurl),) \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(filter _Debian_etch _Ubuntu_hardy,$(debrel)),--with-qt4-dir=$(qtstdc6)) \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(HEADLESS),--build-headless,) \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(DEBUG),--build-debug,) \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(NOWINE),,--setup-wine) \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(NOWEBSVC),,--enable-webservice)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncbld_flags := AUTOCFG=$(current)/debian/AutoConfig.kmk \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync LOCALCFG=$(current)/debian/LocalConfig.kmk \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync PATH_OUT=$(current)/debian/builddir \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync VBOX_DO_STRIP= \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync VBOX_DO_STRIP_MODULES= \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync VBOX_WITH_MULTIVERSION_PYTHON= \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync VBOX_PATH_PACKAGE_DOCS="\"/usr/share/doc/$(verpkg)\"" \
7c205843b5f25329b7bac4cb41e4c55a21c7aafevboxsync $(if $(ose),,VBOX_WITH_DOCS_CHM=1) \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync VBOX_PACKAGE_DIST=$(debdist) \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync VBOX_SVN_REV=$(svnrev) \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(NODOCS),VBOX_WITH_DOCS= ,)\
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(VERBOSE),--print-directory KBUILD_VERBOSE=2,--no-print-directory) \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(STAGEDISO),VBOX_WITHOUT_ADDITIONS=1,) \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(BLEEDING_EDGE),VBOX_BLEEDING_EDGE=$(BLEEDING_EDGE),) \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(filter _Debian_etch _Ubuntu_hardy,$(debrel)),,VBOX_WITH_SYSFS_BY_DEFAULT=1)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncconfigure: debian/configure-stamp
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncdebian/configure-stamp:
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync dh_testdir
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync cd $(vboxroot) && ./configure --odir=$(current)/debian $(cfg_flags)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync touch debian/configure-stamp
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncbuild: debian/configure-stamp debian/build-stamp
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncdebian/build-stamp $(verfile):
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync dh_testdir
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync . debian/env.sh && kmk -C $(vboxroot) $(bld_flags) $(if $(NOPARALLEL),-j1,) all
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(NODOCS),cp $(vboxroot)/prebuild/UserManual*.pdf $(builddir)/bin,)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(NODOCS),cp $(vboxroot)/prebuild/VirtualBox*.chm $(builddir)/bin,)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(EFI),cp $(vboxroot)/prebuild/VBoxEFI32.fd $(builddir)/bin,)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(EFI),cp $(vboxroot)/prebuild/VBoxEFI64.fd $(builddir)/bin,)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync mkdir -p $(builddir)/bin/additions
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(STAGEDISO),cp $(STAGEDISO)/VBoxGuestAdditions.iso $(builddir)/bin/additions,)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync . debian/env.sh && kmk -C $(vboxroot) $(bld_flags) \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync VBOX_NO_LINUX_RUN_INSTALLER=1 \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync VBOX_LNX_ADD_ARCHIVE.x86=$(builddir)/bin/additions/VBoxGuestAdditions-x86-r$(svnrev).tar.bz2 \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync VBOX_LNX_ADD_ARCHIVE.amd64=$(builddir)/bin/additions/VBoxGuestAdditions-amd64-r$(svnrev).tar.bz2 \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync packing
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync touch debian/build-stamp
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Build modules for every kernel we find in /lib/modules/*
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncmodules: debian/build-stamp debian/modules-stamp
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncdebian/modules-stamp: debian/build-stamp
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync rm -rf $(moddir)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync mkdir $(moddir)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync make -C $(builddir)/bin/src/vboxdrv clean
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync for d in $(wildcard /lib/modules/*); do \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync if [ -L $$d/build ]; then \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync make -C $(builddir)/bin/src/vboxdrv KERN_DIR=$$d/build MODULE_DIR=$$d clean && \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync make -j4 -C $(builddir)/bin/src/vboxdrv KBUILD_VERBOSE= KERN_DIR=$$d/build MODULE_DIR=$$d all \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(instmod),&& install -D -m 0644 -g 0 -o 0 \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(builddir)/bin/src/vboxdrv/vboxdrv.ko $(moddir)/$$(basename $$d)/vboxdrv.ko); \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync make -C $(builddir)/bin/src/vboxnetflt KERN_DIR=$$d/build MODULE_DIR=$$d clean && \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync (cp $(builddir)/bin/src/vboxdrv/Module.symvers $(builddir)/bin/src/vboxnetflt || true) && \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync make -j4 -C $(builddir)/bin/src/vboxnetflt KBUILD_VERBOSE= KERN_DIR=$$d/build MODULE_DIR=$$d all \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(instmod),&& install -D -m 0644 -g 0 -o 0 \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(builddir)/bin/src/vboxnetflt/vboxnetflt.ko $(moddir)/$$(basename $$d)/vboxnetflt.ko); \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync make -C $(builddir)/bin/src/vboxnetadp KERN_DIR=$$d/build MODULE_DIR=$$d clean && \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync (cp $(builddir)/bin/src/vboxdrv/Module.symvers $(builddir)/bin/src/vboxnetadp || true) && \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync make -j4 -C $(builddir)/bin/src/vboxnetadp KBUILD_VERBOSE= KERN_DIR=$$d/build MODULE_DIR=$$d all \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(instmod),&& install -D -m 0644 -g 0 -o 0 \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(builddir)/bin/src/vboxnetadp/vboxnetadp.ko $(moddir)/$$(basename $$d)/vboxnetadp.ko); \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync fi; \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync done
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync make -C $(builddir)/bin/src/vboxdrv clean
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync make -C $(builddir)/bin/src/vboxnetflt clean
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync make -C $(builddir)/bin/src/vboxnetadp clean
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync touch debian/modules-stamp
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncclean:
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync dh_testdir
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync dh_testroot
7c205843b5f25329b7bac4cb41e4c55a21c7aafevboxsync rm -f debian/changelog debian/preinst debian/postinst debian/prerm
7c205843b5f25329b7bac4cb41e4c55a21c7aafevboxsync rm -f debian/$(package).init debian/vboxdrv.init debian/vboxweb-service.init
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync rm -f debian/AutoConfig.kmk debian/configure.log debian/env.sh
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync rm -f debian/modules-stamp debian/build-stamp debian/configure-stamp
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync rm -f debian/virtualbox-*.substvars debian/virtualbox*.debhelper
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync rm -rf $(builddir) $(moddir)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync rm -rf debian/wine.*
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync dh_clean
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncifeq ($(VBOX_VERSION_MAJOR),)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncbinary binary-arch binary-indep: build $(verfile)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(MAKE) -f debian/rules binary
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncelse
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Build architecture-dependent files here.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncbinary binary-arch binary-indep: build $(if $(NOMODS),,modules)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync dh_testdir
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync dh_testroot
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync dh_clean -k
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync dh_installdirs
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync tar -xjC $(prefix)/opt -f $(builddir)/bin/VirtualBox.tar.bz2
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync install -d -g 0 -o 0 $(prefix)/usr/share/applications
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync install -d -g 0 -o 0 $(prefix)/usr/lib
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync install -d -g 0 -o 0 $(prefix)/usr/bin
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync install -d -g 0 -o 0 $(prefix)/usr/lib/$(package)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync install -d -g 0 -o 0 $(prefix)/usr/share/$(package)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync install -d -g 0 -o 0 $(prefix)/usr/share/doc/$(verpkg)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(NOQT),,mv $(archdir)/virtualbox.desktop \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(prefix)/usr/share/applications/virtualbox.desktop)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync install -d -g 0 -o 0 $(prefix)/usr/share/pixmaps
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync install -d -g 0 -o 0 $(prefix)/usr/share/lintian/overrides
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync sed \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync -e 's|%VERPKG%|$(verpkg)|g' \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync debian/lintian-override.in > \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(prefix)/usr/share/lintian/overrides/$(verpkg)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync mv $(archdir)/VBoxEFI32.fd $(prefix)/usr/lib/$(package)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync mv $(archdir)/VBoxEFI64.fd $(prefix)/usr/lib/$(package)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync mv $(archdir)/VBox.png \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(prefix)/usr/share/pixmaps/VBox.png
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync mv $(archdir)/*.gc $(prefix)/usr/lib/$(package)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync mv $(archdir)/*.r0 $(prefix)/usr/lib/$(package)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync mv $(archdir)/*.rel $(prefix)/usr/lib/$(package) || true
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync mv $(archdir)/VBoxNetDHCP $(prefix)/usr/lib/$(package)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync mv $(archdir)/VBoxNetAdpCtl $(prefix)/usr/lib/$(package)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync mv $(archdir)/VBoxXPCOMIPCD $(prefix)/usr/lib/$(package)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync mv $(archdir)/components $(prefix)/usr/lib/$(package)/components
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync mv $(archdir)/*.so $(prefix)/usr/lib/$(package)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync mv $(archdir)/*.so.4 $(prefix)/usr/lib/$(package) || true
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(NOQT),,mv $(archdir)/VBoxTestOGL $(prefix)/usr/lib/$(package))
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(NOQT),,mv $(archdir)/nls $(prefix)/usr/share/$(package))
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync mv $(archdir)/src $(prefix)/usr/share/$(package)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync rm $(archdir)/VBox.sh
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync export VBOX_INSTALL_PATH=/usr/lib/$(package) && \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync cd ./debian/builddir/bin/sdk/installer && \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync python ./vboxapisetup.py install --root $(prefix)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync rm -rf $(archdir)/sdk/installer
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync mv $(archdir)/vboxshell.py $(prefix)/usr/lib/$(package)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync mv $(archdir)/sdk $(prefix)/usr/lib/$(package)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync install -D -g 0 -o 0 -m 644 debian/VBox.sh $(prefix)/usr/bin/VBox
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync mv $(archdir)/VBoxSysInfo.sh $(prefix)/usr/share/$(package)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync for i in VBoxManage VBoxSVC $(if $(HEADLESS),,VBoxSDL) \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(NOQT),,VirtualBox) VBoxHeadless \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(NOWEBSVC),,vboxwebsrv webtest); do \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync mv $(archdir)/$$i $(prefix)/usr/lib/$(package); done
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync mv $(archdir)/VBoxTunctl $(prefix)/usr/bin
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(NOMODS),,for d in $(moddir)/*; do \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync if [ -f $$d/vboxdrv.ko -a -f $$d/vboxnetflt.ko -a -f $$d/vboxnetadp.ko ]; then \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync install -D -g 0 -o 0 -m 0644 \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $$d/vboxdrv.ko $(prefix)/lib/modules/$$(basename $$d)/misc/vboxdrv.ko; \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync install -D -g 0 -o 0 -m 0644 \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $$d/vboxnetflt.ko $(prefix)/lib/modules/$$(basename $$d)/misc/vboxnetflt.ko; \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync install -D -g 0 -o 0 -m 0644 \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $$d/vboxnetadp.ko $(prefix)/lib/modules/$$(basename $$d)/misc/vboxnetadp.ko; \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync fi \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync done)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncifeq ($(ose),)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(NOQT),,mv $(archdir)/kchmviewer $(prefix)/usr/lib/$(package))
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync dh_installdocs \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(archdir)/UserManual*.pdf $(archdir)/VirtualBox*.chm \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(addprefix $(archdir)/, $(if $(HEADLESS),,License-*.html) LICENSE)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync rm $(addprefix $(archdir)/,UserManual*.pdf VirtualBox*.chm \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync LICENSE $(if $(HEADLESS),,License-*.html))
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync for i in rdesktop-vrdp.tar.gz additions/VBoxGuestAdditions.iso; do \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync mv $(archdir)/$$i $(prefix)/usr/share/$(package); done
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(HEADLESS),,mv $(archdir)/rdesktop-vrdp $(prefix)/usr/bin)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(HEADLESS),,mv $(archdir)/rdesktop-vrdp-keymaps $(prefix)/usr/share/$(package))
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync if [ -d $(archdir)/accessible ]; then mv $(archdir)/accessible $(prefix)/usr/lib/virtualbox; fi
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncelse
d02610fd604cc8ab4cccf7e3fa510c06cb728ff2vboxsync dh_installdocs \
d02610fd604cc8ab4cccf7e3fa510c06cb728ff2vboxsync $(archdir)/UserManual*.pdf
d02610fd604cc8ab4cccf7e3fa510c06cb728ff2vboxsync rm $(addprefix $(archdir)/,UserManual*.pdf)
d02610fd604cc8ab4cccf7e3fa510c06cb728ff2vboxsync for i in additions/VBoxGuestAdditions.iso; do \
d02610fd604cc8ab4cccf7e3fa510c06cb728ff2vboxsync mv $(archdir)/$$i $(prefix)/usr/share/$(package); done
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncendif
d02610fd604cc8ab4cccf7e3fa510c06cb728ff2vboxsync rmdir $(archdir)/additions
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync rmdir $(archdir)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync rmdir $(prefix)/opt
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync dh_link \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(NOQT),,usr/bin/VBox usr/bin/VirtualBox) \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync usr/bin/VBox usr/bin/VBoxManage \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(HEADLESS),,usr/bin/VBox usr/bin/VBoxSDL) \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(ose),,usr/bin/VBox usr/bin/VBoxVRDP) \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync usr/bin/VBox usr/bin/VBoxHeadless \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(NOWEBSVC),,usr/bin/VBox usr/bin/vboxwebsrv) \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync usr/share/virtualbox/src/vboxdrv usr/src/vboxdrv-$(ver) \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync usr/share/virtualbox/src/vboxnetflt usr/src/vboxnetflt-$(ver) \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync usr/share/virtualbox/src/vboxnetadp usr/src/vboxnetadp-$(ver)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync dh_desktop
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync dh_installmenu
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(if $(NOMODS),,dh_installmodules)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync sed \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync -e 's|%NOLSB%||g' \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync -e 's|%DEBIAN%|yes|g' \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync -e 's|%PACKAGE%|virtualbox|g' \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(vboxroot)/src/VBox/Installer/linux/vboxdrv.sh.in > debian/vboxdrv.init
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync dh_installinit --name=vboxdrv --noscripts
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync sed \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync -e 's|%NOLSB%||g' \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync -e 's|%DEBIAN%|yes|g' \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync -e 's|%PACKAGE%|virtualbox|g' \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(vboxroot)/src/VBox/Installer/linux/vboxweb-service.sh.in > debian/vboxweb-service.init
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync dh_installinit --name=vboxweb-service --noscripts
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync sed -e 's|%VER%|$(debver)|g' \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync -e 's|%DATE%|$(shell date -R)|g' \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync -e 's|%DEBREL%|$(subst _,~,$(debrel))|g' \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync -e 's|%VERPKG%|$(verpkg)|g' \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync debian/changelog.in > debian/changelog
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync cat debian/preinst.in | sed -e 's|%VER%|$(ver)|g' > debian/preinst
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync cat debian/prerm.in | sed -e 's|%VER%|$(ver)|g' > debian/prerm
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync cat debian/postinst.in | sed -e 's|%VER%|$(ver)|g' > debian/postinst
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync dh_installdebconf
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync dh_installchangelogs
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync dh_installmenu
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync dh_link
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncifeq ($(DEBUG),)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync dh_strip --keep-debug --exclude=libQtCoreVBox.so.4 --exclude=libQtGuiVBox.so.4 --exclude=libQtNetworkVBox.so.4 --exclude=libQtOpenGLVBox.so.4 --exclude=libqtaccessiblewidgets.so
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync # manually strip our R0/GC modules, dh_strip cannot handle them
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync for f in \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(prefix)/usr/lib/$(package)/*.r0 $(prefix)/usr/lib/$(package)/*.gc; do \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync objcopy --only-keep-debug \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $$f \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync $(prefix)/usr/lib/debug/usr/lib/$(package)/`basename $$f`; \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync strip -S --remove-section=.comment $$f; \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync objcopy --add-gnu-debuglink=$(prefix)/usr/lib/debug/usr/lib/$(package)/`basename $$f` $$f; \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync done
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncendif
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync mkdir -p $(current)/debian/$(verpkg)-dbg/usr/lib
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncifeq ($(DEBUG),)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync mv $(current)/debian/$(verpkg)/usr/lib/debug $(current)/debian/$(verpkg)-dbg/usr/lib
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncendif
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync dh_pycentral
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync dh_compress -X.pdf -X.chm -X LICENSE -X.py
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync dh_fixperms
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync dh_makeshlibs
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync dh_installdeb
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync dh_perl
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync # for some reason, the Qt libraries couldn't be found on newer releases (e.g. Ubuntu hardy)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync LD_LIBRARY_PATH=$(prefix)/usr/lib/virtualbox dh_shlibdeps
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync dh_gencontrol -- \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync -Valsa=$(if $(HEADLESS),,libasound2) \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync -Vpulse=$(if $(HEADLESS),,libpulse0) \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync -Vsdlttf=$(if $(HEADLESS),,libsdl-ttf2.0-0) \
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync -Vdkms=$(if $(filter _Ubuntu_hardy _Ubuntu_intrepid _Ubuntu_jaunty _Ubuntu_karmic _Ubuntu_lucid,$(debrel)),dkms,)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync dh_md5sums
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync dh_builddeb --destdir $(pkgdir)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncendif
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync.PHONY: binary modules binary-arch binary-indep clean checkroot