Skip to content

Commit

Permalink
tools: Allow tools to be installed in a user specified location
Browse files Browse the repository at this point in the history
When building x86_energy_perf_policy or turbostat within the confines of
a packaging system such as RPM, we need to be able to have it install to
the buildroot and not the root filesystem of the build machine.  This
adds a DESTDIR variable that when set will act as a prefix for the
install location of these tools.

Signed-off-by: Josh Boyer <[email protected]>
Signed-off-by: Len Brown <[email protected]>
  • Loading branch information
jwboyer authored and lenb committed Nov 30, 2012
1 parent ee0778a commit 55f1f54
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/power/x86/x86_energy_perf_policy/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
DESTDIR ?=

x86_energy_perf_policy : x86_energy_perf_policy.c

clean :
rm -f x86_energy_perf_policy

install :
install x86_energy_perf_policy /usr/bin/
install x86_energy_perf_policy.8 /usr/share/man/man8/
install x86_energy_perf_policy ${DESTDIR}/usr/bin/
install x86_energy_perf_policy.8 ${DESTDIR}/usr/share/man/man8/

0 comments on commit 55f1f54

Please sign in to comment.