X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=Makefile;h=2da6f86492f37400349e957149bb5622a7c1d3cd;hp=c54be94159688f2a2dbfba450e454e3f18b90d1d;hb=e518d1d16c16781d6824ece2ee0ddd1ac2339703;hpb=2ce51d1e70aaf667be126b88a35b6210a45fb314 diff --git a/Makefile b/Makefile index c54be94..2da6f86 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ PREFIX?=/usr -VERSION=0.0.1 +VERSION=0.2 PACKAGE=petitboot CC=gcc INSTALL=install @@ -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