Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cpupower: add Makefile dependencies for install targets

This allows building cpupower in parallel rather than serially.

Signed-off-by: Ivan Babrou <ivan@cloudflare.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Ivan Babrou and committed by
Shuah Khan
fb7791e2 e71ba945

+5 -5
+4 -4
tools/power/cpupower/Makefile
··· 270 270 $(MAKE) -C bench O=$(OUTPUT) clean 271 271 272 272 273 - install-lib: 273 + install-lib: libcpupower 274 274 $(INSTALL) -d $(DESTDIR)${libdir} 275 275 $(CP) $(OUTPUT)libcpupower.so* $(DESTDIR)${libdir}/ 276 276 $(INSTALL) -d $(DESTDIR)${includedir} 277 277 $(INSTALL_DATA) lib/cpufreq.h $(DESTDIR)${includedir}/cpufreq.h 278 278 $(INSTALL_DATA) lib/cpuidle.h $(DESTDIR)${includedir}/cpuidle.h 279 279 280 - install-tools: 280 + install-tools: $(OUTPUT)cpupower 281 281 $(INSTALL) -d $(DESTDIR)${bindir} 282 282 $(INSTALL_PROGRAM) $(OUTPUT)cpupower $(DESTDIR)${bindir} 283 283 $(INSTALL) -d $(DESTDIR)${bash_completion_dir} ··· 293 293 $(INSTALL_DATA) -D man/cpupower-info.1 $(DESTDIR)${mandir}/man1/cpupower-info.1 294 294 $(INSTALL_DATA) -D man/cpupower-monitor.1 $(DESTDIR)${mandir}/man1/cpupower-monitor.1 295 295 296 - install-gmo: 296 + install-gmo: create-gmo 297 297 $(INSTALL) -d $(DESTDIR)${localedir} 298 298 for HLANG in $(LANGUAGES); do \ 299 299 echo '$(INSTALL_DATA) -D $(OUTPUT)po/$$HLANG.gmo $(DESTDIR)${localedir}/$$HLANG/LC_MESSAGES/cpupower.mo'; \ 300 300 $(INSTALL_DATA) -D $(OUTPUT)po/$$HLANG.gmo $(DESTDIR)${localedir}/$$HLANG/LC_MESSAGES/cpupower.mo; \ 301 301 done; 302 302 303 - install-bench: 303 + install-bench: compile-bench 304 304 @#DESTDIR must be set from outside to survive 305 305 @sbindir=$(sbindir) bindir=$(bindir) docdir=$(docdir) confdir=$(confdir) $(MAKE) -C bench O=$(OUTPUT) install 306 306
+1 -1
tools/power/cpupower/bench/Makefile
··· 27 27 28 28 all: $(OUTPUT)cpufreq-bench 29 29 30 - install: 30 + install: $(OUTPUT)cpufreq-bench 31 31 mkdir -p $(DESTDIR)/$(sbindir) 32 32 mkdir -p $(DESTDIR)/$(bindir) 33 33 mkdir -p $(DESTDIR)/$(docdir)