]> git.ozlabs.org Git - petitboot/blobdiff - Makefile
Use git-ls-files for make dist target
[petitboot] / 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
-       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