]> sigrok.org Git - sigrok-firmware.git/commitdiff
Makefile: Fix 'make dist', better tarball creation.
authorUwe Hermann <redacted>
Wed, 23 May 2012 17:16:23 +0000 (19:16 +0200)
committerUwe Hermann <redacted>
Thu, 24 May 2012 08:57:39 +0000 (10:57 +0200)
Makefile

index 18829b6a4534aea32872aaef88ec548cd8d27238..60aefc07df7bb93e1026ed11d8ca821af9f775a2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -22,16 +22,19 @@ VERSION = "0.1.0"
 
 DESTDIR ?= /usr/local/share/libsigrok/firmware
 
+TARBALLDIR = sigrok-firmwares-$(VERSION)
+
 all:
        @echo "Run 'make dist' to create a tarball."
 
 ChangeLog:
-       git log > ChangeLog || touch ChangeLog
+       @git log > ChangeLog || touch ChangeLog
 
 dist: ChangeLog
-       @tar -c -v -z --exclude=.git --exclude=Makefile \
-               --exclude=sigrok-firmwares-$(VERSION).tar.gz \
-               -f sigrok-firmwares-$(VERSION).tar.gz *
+       @mkdir $(TARBALLDIR)
+       @cp -r Makefile README NEWS asix-sigma $(TARBALLDIR)
+       @tar -c -z -f $(TARBALLDIR).tar.gz $(TARBALLDIR)
+       @rm -rf $(TARBALLDIR)
        @rm -f ChangeLog
 
 install: