]> git.ozlabs.org Git - petitboot/commitdiff
Fix out of source make dist
authorGeoff Levand <geoffrey.levand@am.sony.com>
Fri, 27 Feb 2009 14:54:03 +0000 (14:54 +0000)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 23 Mar 2009 10:48:59 +0000 (21:48 +1100)
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

index 9b6d5ba110bf013059efde0c2f3d35291e42ceba..6f85040ea397f6eec6c26fc8d4ae7679252f1114 100644 (file)
--- a/rules.mk
+++ b/rules.mk
@@ -124,10 +124,10 @@ $(PACKAGE)-$(VERSION).tar.gz: $(PACKAGE)-$(VERSION)
        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: