Patchwork [13/16] petitboot: Fix out of source make dist

login
register
mail settings
Submitter Geoff Levand
Date Feb. 28, 2009, 12:54 a.m.
Message ID <20090228005350.938991508@am.sony.com>
Download mbox | patch
Permalink /patch/23858/
State Accepted
Headers show

Comments

Geoff Levand - Feb. 28, 2009, 12:54 a.m.
The dist makefile target needs to work on files in the
source directory. Add the missing $(top_srcdir).

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
---
 rules.mk |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

--- a/rules.mk
+++ b/rules.mk
@@ -124,10 +124,10 @@  $(PACKAGE)-$(VERSION).tar.gz: $(PACKAGE)
 	tar czvf $@ $^
 
 $(PACKAGE)-$(VERSION): clean
-	for f in $$(git-ls-files); do \
+	for f in $$(git --git-dir=$(top_srcdir)/.git ls-files); do \
 		d=$@/$$(dirname $$f); \
 		mkdir -p $$d; \
-		cp -a $$f $$d; \
+		cp -a $(top_srcdir)/$$f $$d; \
 	done
 
 clean: