Use git-ls-files for make dist target
authorJeremy Kerr <jk@ozlabs.org>
Mon, 7 Jan 2008 22:39:55 +0000 (09:39 +1100)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 7 Jan 2008 22:39:55 +0000 (09:39 +1100)
To make sure we won't miss any files.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Makefile

index c54be94159688f2a2dbfba450e454e3f18b90d1d..b26cb281f8d184d05d7a8576ee5ab4178d69394d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -53,15 +53,11 @@ $(PACKAGE)-$(VERSION).tar.gz: $(PACKAGE)-$(VERSION)
        tar czvf $@ $^
 
 $(PACKAGE)-$(VERSION): clean
        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
 clean:
        rm -rf $(PACKAGE)-$(VERSION)
        rm -f petitboot