Skip to content

Commit 2363ecb

Browse files
Borislav Petkovacmel
authored andcommitted
tools: Add a toplevel Makefile
Add a Makefile with all the targets under tools/. Signed-off-by: Borislav Petkov <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Michal Marek <[email protected]> Cc: Sam Ravnborg <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent d8caf3e commit 2363ecb

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

tools/Makefile

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
include scripts/Makefile.include
2+
3+
cpupower: FORCE
4+
$(QUIET_SUBDIR0)power/$@/ $(QUIET_SUBDIR1)
5+
6+
firewire lguest perf usb virtio vm: FORCE
7+
$(QUIET_SUBDIR0)$@/ $(QUIET_SUBDIR1)
8+
9+
selftests: FORCE
10+
$(QUIET_SUBDIR0)testing/$@/ $(QUIET_SUBDIR1)
11+
12+
turbostat x86_energy_perf_policy: FORCE
13+
$(QUIET_SUBDIR0)power/x86/$@/ $(QUIET_SUBDIR1)
14+
15+
cpupower_install:
16+
$(QUIET_SUBDIR0)power/$(@:_install=)/ $(QUIET_SUBDIR1) install
17+
18+
firewire_install lguest_install perf_install usb_install virtio_install vm_install:
19+
$(QUIET_SUBDIR0)$(@:_install=)/ $(QUIET_SUBDIR1) install
20+
21+
selftests_install:
22+
$(QUIET_SUBDIR0)testing/$(@:_clean=)/ $(QUIET_SUBDIR1) install
23+
24+
turbostat_install x86_energy_perf_policy_install:
25+
$(QUIET_SUBDIR0)power/x86/$(@:_install=)/ $(QUIET_SUBDIR1) install
26+
27+
install: cpupower_install firewire_install lguest_install perf_install \
28+
selftests_install turbostat_install usb_install virtio_install \
29+
vm_install x86_energy_perf_policy_install
30+
31+
cpupower_clean:
32+
$(QUIET_SUBDIR0)power/cpupower/ $(QUIET_SUBDIR1) clean
33+
34+
firewire_clean lguest_clean perf_clean usb_clean virtio_clean vm_clean:
35+
$(QUIET_SUBDIR0)$(@:_clean=)/ $(QUIET_SUBDIR1) clean
36+
37+
selftests_clean:
38+
$(QUIET_SUBDIR0)testing/$(@:_clean=)/ $(QUIET_SUBDIR1) clean
39+
40+
turbostat_clean x86_energy_perf_policy_clean:
41+
$(QUIET_SUBDIR0)power/x86/$(@:_clean=)/ $(QUIET_SUBDIR1) clean
42+
43+
clean: cpupower_clean firewire_clean lguest_clean perf_clean selftests_clean \
44+
turbostat_clean usb_clean virtio_clean vm_clean \
45+
x86_energy_perf_policy_clean
46+
47+
.PHONY: FORCE

0 commit comments

Comments
 (0)