2016-03-20 20:08:08 +00:00
|
|
|
include $(top_rulesdir)/Makefile.inc
|
2016-03-11 14:55:41 +00:00
|
|
|
|
2016-06-10 01:14:04 +00:00
|
|
|
MAKE_CPUPOWER := $(shell dpkg-buildflags --export=cmdline) $(MAKE) O=$(CURDIR) CPUFREQ_BENCH=false V=true mandir=/usr/share/man
|
|
|
|
|
|
|
|
MAKE_CPUPOWER += DEBUG=$(if $(findstring nostrip,$(DEB_BUILD_OPTIONS)),true,)
|
2016-03-11 14:55:41 +00:00
|
|
|
|
2016-06-10 01:16:09 +00:00
|
|
|
MAKE_CPUPOWER += PACKAGE_BUGREPORT='Debian\ \(reportbug\ linux-cpupower\)'
|
|
|
|
|
2016-03-11 14:55:41 +00:00
|
|
|
all:
|
2016-06-10 01:14:04 +00:00
|
|
|
$(MAKE_CPUPOWER) -C $(top_srcdir)/tools/power/cpupower
|
2016-03-11 14:55:41 +00:00
|
|
|
|
|
|
|
install:
|
2016-06-10 01:14:04 +00:00
|
|
|
$(MAKE_CPUPOWER) -C $(top_srcdir)/tools/power/cpupower install DESTDIR=$(DESTDIR)
|
2016-05-14 23:19:24 +00:00
|
|
|
ifneq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
|
|
|
|
rm -rf $(DESTDIR)/usr/share/man
|
|
|
|
endif
|
2016-03-11 14:55:41 +00:00
|
|
|
|
|
|
|
clean:
|
2016-06-10 01:14:04 +00:00
|
|
|
$(MAKE_CPUPOWER) -C $(top_srcdir)/tools/power/cpupower clean
|