X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=Makefile;h=b26cb281f8d184d05d7a8576ee5ab4178d69394d;hp=c54be94159688f2a2dbfba450e454e3f18b90d1d;hb=7a0b7f404028a63e9527b26eb09b6de9958acc34;hpb=2ce51d1e70aaf667be126b88a35b6210a45fb314 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