]> git.ozlabs.org Git - petitboot/blobdiff - Makefile
Version 0.2
[petitboot] / Makefile
index c54be94159688f2a2dbfba450e454e3f18b90d1d..2da6f86492f37400349e957149bb5622a7c1d3cd 100644 (file)
--- 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