From: Uwe Hermann Date: Wed, 23 May 2012 17:16:23 +0000 (+0200) Subject: Makefile: Fix 'make dist', better tarball creation. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=4f4be8c6eb40473ba5dd660ccc9c4b88614204b0;p=sigrok-firmware.git Makefile: Fix 'make dist', better tarball creation. --- diff --git a/Makefile b/Makefile index 18829b6..60aefc0 100644 --- 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: