debian/rules.real: Split up build rule so we can selectively add variables
We need to define an extra variable when building perf. svn path=/dists/trunk/linux-tools/; revision=21643
This commit is contained in:
parent
11a8ecec5a
commit
465ef86f0a
|
@ -15,10 +15,12 @@ endif
|
|||
|
||||
build: $(STAMPS_DIR)/build
|
||||
|
||||
$(STAMPS_DIR)/build:
|
||||
$(MAKE) -C $(BUILD_DIR) top_srcdir=$(CURDIR)
|
||||
$(STAMPS_DIR)/build: build-kbuild build-tools build-usbip
|
||||
touch '$@'
|
||||
|
||||
build-kbuild:
|
||||
$(MAKE) -C $(BUILD_DIR)/scripts top_srcdir=$(CURDIR)
|
||||
|
||||
install-kbuild: PACKAGE_NAME = linux-kbuild-$(VERSION)
|
||||
install-kbuild: DH_OPTIONS = -p$(PACKAGE_NAME)
|
||||
install-kbuild: BASE_DIR = /usr/lib/$(PACKAGE_NAME)
|
||||
|
@ -40,6 +42,9 @@ install-kbuild: $(STAMPS_DIR)/build
|
|||
dh_md5sums
|
||||
dh_builddeb
|
||||
|
||||
build-tools:
|
||||
$(MAKE) -C $(BUILD_DIR)/tools top_srcdir=$(CURDIR)
|
||||
|
||||
install-tools: PACKAGE_NAME = linux-tools-$(VERSION)
|
||||
install-tools: DH_OPTIONS = -p$(PACKAGE_NAME)
|
||||
install-tools: DIR = $(CURDIR)/debian/$(PACKAGE_NAME)
|
||||
|
@ -61,6 +66,9 @@ install-tools: $(STAMPS_DIR)/build
|
|||
dh_md5sums
|
||||
dh_builddeb
|
||||
|
||||
build-usbip:
|
||||
$(MAKE) -C $(BUILD_DIR)/drivers/staging/usbip top_srcdir=$(CURDIR)
|
||||
|
||||
install-usbip: DH_OPTIONS = -plibusbip-dev -pusbip
|
||||
install-usbip: DIR = $(CURDIR)/debian/tmp
|
||||
install-usbip: override VERSION := $(shell sed -ne 's,^#define PACKAGE_VERSION "\(.*\)"$$,\1,p' $(BUILD_DIR)/drivers/staging/usbip/userspace/config.h)
|
||||
|
|
Loading…
Reference in New Issue