tools: Add a toplevel Makefile
[linux-3.10.git] / tools / Makefile
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