[linux-tools] 03/06: Simplify make rules for cpupower
debian-kernel at lists.debian.org
debian-kernel at lists.debian.org
Sun Mar 20 21:27:38 UTC 2016
This is an automated email from the git hooks/post-receive script.
benh pushed a commit to branch master
in repository linux-tools.
commit 85aba07cc0f005b3af210fb64e2dafe6e93c2c17
Author: Ben Hutchings <ben at decadent.org.uk>
Date: Sun Mar 20 20:08:08 2016 +0000
Simplify make rules for cpupower
---
debian/rules.d/tools/power/cpupower/Makefile | 14 ++++----------
debian/rules.real | 2 +-
2 files changed, 5 insertions(+), 11 deletions(-)
diff --git a/debian/rules.d/tools/power/cpupower/Makefile b/debian/rules.d/tools/power/cpupower/Makefile
index 66e2c75..79b1314 100644
--- a/debian/rules.d/tools/power/cpupower/Makefile
+++ b/debian/rules.d/tools/power/cpupower/Makefile
@@ -1,20 +1,14 @@
-OUTDIR = tools/power/cpupower
-prefix = /usr/sbin
-
-include ../../../Makefile.inc
+include $(top_rulesdir)/Makefile.inc
ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
DEBUG = true
endif
all:
- mkdir out
- $(shell dpkg-buildflags --export=cmdline) $(MAKE) -C $(top_srcdir)/tools/power/cpupower -f Makefile O=$(CURDIR)/out DEBUG=$(DEBUG) CPUFREQ_BENCH=false V=true
+ $(shell dpkg-buildflags --export=cmdline) $(MAKE) -C $(top_srcdir)/tools/power/cpupower O=$(CURDIR) DEBUG=$(DEBUG) CPUFREQ_BENCH=false V=true
install:
- $(MAKE) -C $(top_srcdir)/tools/power/cpupower -f Makefile O=$(CURDIR)/out install mandir=/usr/share/man DESTDIR=$(DESTDIR) CPUFREQ_BENCH=false
+ $(MAKE) -C $(top_srcdir)/tools/power/cpupower O=$(CURDIR) install mandir=/usr/share/man DESTDIR=$(DESTDIR) CPUFREQ_BENCH=false
clean:
- mkdir -p out
- $(MAKE) -C $(top_srcdir)/tools/power/cpupower -f Makefile O=$(CURDIR)/out clean
- rm -rf out
+ $(MAKE) -C $(top_srcdir)/tools/power/cpupower O=$(CURDIR) clean
diff --git a/debian/rules.real b/debian/rules.real
index 6338c70..5283351 100644
--- a/debian/rules.real
+++ b/debian/rules.real
@@ -54,7 +54,7 @@ install-cpupower: $(STAMPS_DIR)/build
dh_testdir
dh_testroot
dh_prep
- $(MAKE) -C $(BUILD_DIR)/tools/power/cpupower install top_srcdir=$(CURDIR) DESTDIR=$(DIR)
+ $(call submake,tools/power/cpupower) install DESTDIR=$(DIR)
dh_install --sourcedir=$(DIR)
dh_installchangelogs
dh_installdocs
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux-tools.git
More information about the Kernel-svn-changes
mailing list