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

Submitted by Geoff Levand on Feb. 28, 2009, 12:54 a.m.

Details

Message ID 20090228005350.938991508@am.sony.com
State Accepted
Headers show

Commit Message

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 hide | download patch | download mbox

--- 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: