[Powertop] Fix out of tree builds [Was: PowerTOP v2.6.1 released]

Joerg Mayer <jmpt at loplof.de>
Newsgroups dev.linux.lists.powertop
Message-ID <[email protected]>
On Wed, May 28, 2014 at 09:28:12AM -0700, Alexandra Yates wrote:
> > On Tue, May 27, 2014 at 10:24:44AM -0700, Alexandra Yates wrote:
> >> > Also it is not possible to compile it after running:
> >> > $ make clean
> >> >
> >> > It seems csstoh.sh script is missing
> >
> > I've had this patch in my tree for at least some months...
> 
> Can you send the patch to the mailing list?

I verified that I did attach it. For people who prefer inline patches
find a regenerated version below. Btw, to find out about problems with
the source: Please run "make distcheck" before doing a release - which
will currently fail due to the included object files.

Ciao
   Jörg

>From 22a76b66041f27017de302ae5650ec973471a01a Mon Sep 17 00:00:00 2001
From: Joerg Mayer <jmpt(a)loplof.de>
Date: Sun, 1 Jun 2014 09:36:17 +0200
Subject: [PATCH] Fix out of tree builds

Signed-off-by: Joerg Mayer <jmpt(a)loplof.de>
---
 src/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 0fe3c04..605f285 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -50,5 +50,5 @@ AM_LDFLAGS = $(LIBS) $(NCURSES_LIBS) $(PCIUTILS_LIBS) $(LIBNL_LIBS) $(LIBZ_LIBS)
 BUILT_SOURCES = css.h
 CLEANFILES = css.h
 css.h: powertop.css
-	$(SHELL) ./csstoh.sh powertop.css css.h
+	$(SHELL) ${srcdir}/csstoh.sh ${srcdir}/powertop.css css.h
 
-- 
1.8.4.5

-- 
Joerg Mayer                                           <jmayer(a)loplof.de>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.