]> sigrok.org Git - sigrok-firmware-fx2lafw.git/commitdiff
Add 'dist' target which creates a tarball.
authorUwe Hermann <redacted>
Wed, 18 Jul 2012 17:15:13 +0000 (19:15 +0200)
committerUwe Hermann <redacted>
Sun, 22 Jul 2012 16:18:15 +0000 (18:18 +0200)
Makefile

index b207a42d3ce332efdd7ab6456ea2528e00166cb7..e754b04ab04fede9a630e2a56bc7c76e1f8206be 100644 (file)
--- a/Makefile
+++ b/Makefile
 ## 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)