aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2012-07-12 22:58:30 +0200
committerChris E Ferron <chris.e.ferron@linux.intel.com>2012-07-17 14:45:26 -0700
commite12ee36f2ccbcfe598b2beb3bcff000951b99e58 (patch)
treeb8b20a0a2ba017922b4207bdab8a72b662af9af4
parent2477c917d80efae446386917a830eb539fce789c (diff)
Fix out-of-tree builds
Out-of-tree builds are a very useful feature which should be supported by all programs which use GNU automake and the configure / make build. For powertop, only a very small fix was needed to make it work. Without that fix, powertop.css is not found when a build is not started from the source tree, so csstoh fails and creates no css.h. Signed-off-by: Stefan Weil <sw@weilnetz.de>
-rw-r--r--src/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index c77b2aa..23625a2 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -45,5 +45,5 @@ AM_LDFLAGS = $(LIBS) $(NCURSES_LIBS) $(PCIUTILS_LIBS) $(LIBNL_LIBS) $(LIBZ_LIBS)
BUILT_SOURCES = css.h
CLEANFILES = css.h
css.h: csstoh powertop.css
- ./csstoh powertop.css css.h
+ ./csstoh "$(srcdir)"/powertop.css css.h