summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2008-01-08 09:39:55 +1100
committerJeremy Kerr <jk@ozlabs.org>2008-01-08 09:39:55 +1100
commit7a0b7f404028a63e9527b26eb09b6de9958acc34 (patch)
tree85ca2ffd510b22b81b97821f4d3d2285e1270e4b
parent2ce51d1e70aaf667be126b88a35b6210a45fb314 (diff)
downloadtalos-petitboot-7a0b7f404028a63e9527b26eb09b6de9958acc34.tar.gz
talos-petitboot-7a0b7f404028a63e9527b26eb09b6de9958acc34.zip
Use git-ls-files for make dist target
To make sure we won't miss any files. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
-rw-r--r--Makefile14
1 files changed, 5 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index c54be94..b26cb28 100644
--- a/Makefile
+++ b/Makefile
@@ -53,15 +53,11 @@ $(PACKAGE)-$(VERSION).tar.gz: $(PACKAGE)-$(VERSION)
tar czvf $@ $^
$(PACKAGE)-$(VERSION): clean
- mkdir $@ $@/devices
- cp -a artwork $@
- cp -a utils $@
- cp *.[ch] $@
- cp -a devices/*.{c,h,sh} $@/devices/
- cp -a devices/parser-tests $@/devices/
- cp Makefile $@
- cp TODO COPYING $@
-
+ for f in $$(git-ls-files); do \
+ d=$@/$$(dirname $$f); \
+ mkdir -p $$d; \
+ cp -a $$f $$d; \
+ done
clean:
rm -rf $(PACKAGE)-$(VERSION)
rm -f petitboot
OpenPOWER on IntegriCloud