From: Uwe Hermann Date: Wed, 18 Jul 2012 17:15:13 +0000 (+0200) Subject: Add 'dist' target which creates a tarball. X-Git-Tag: sigrok-firmware-fx2lafw-0.1.0~10 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d4c182415452e083b05daab41cb8ff71184f392b;p=sigrok-firmware-fx2lafw.git Add 'dist' target which creates a tarball. --- diff --git a/Makefile b/Makefile index b207a42d..e754b04a 100644 --- a/Makefile +++ b/Makefile @@ -18,8 +18,15 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## +# sigrok-firmware-fx2lafw package/tarball version number. +VERSION = "0.1.0" + DESTDIR ?= /usr/local/share/sigrok-firmware +REPO = git://sigrok.git.sourceforge.net/gitroot/sigrok/fx2lafw + +TARBALLDIR = sigrok-firmware-fx2lafw-$(VERSION) + all: build-all build-all: saleae-logic cwav-usbeeax cwav-usbeesx cypress-fx2 braintechnology-usb-lps @@ -42,6 +49,12 @@ braintechnology-usb-lps: ChangeLog: @git log > ChangeLog || touch ChangeLog +dist: + git clone $(REPO) $(TARBALLDIR) + cd $(TARBALLDIR) && $(MAKE) ChangeLog && cd .. + @tar -c -z -f $(TARBALLDIR).tar.gz $(TARBALLDIR) + @rm -rf $(TARBALLDIR) + install: build-all @mkdir -p $(DESTDIR) @cp hw/saleae-logic/build/*.fw $(DESTDIR)