From: Geoff Levand Date: Fri, 27 Feb 2009 14:54:03 +0000 (+0000) Subject: Fix out of source make dist X-Git-Tag: v1.0.0~901 X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=dcab4e022083fecf221bebf9d6cdbb30b4b33c4d Fix out of source make dist The dist makefile target needs to work on files in the source directory. Add the missing $(top_srcdir). Signed-off-by: Geoff Levand --- diff --git a/rules.mk b/rules.mk index 9b6d5ba..6f85040 100644 --- 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: