]> sigrok.org Git - sigrok-firmware-fx2lafw.git/commitdiff
Makefile: Add a 'distbin' target. sigrok-firmware-fx2lafw-0.1.0
authorUwe Hermann <redacted>
Tue, 24 Jul 2012 19:04:50 +0000 (21:04 +0200)
committerUwe Hermann <redacted>
Tue, 24 Jul 2012 19:04:50 +0000 (21:04 +0200)
This creates a sigrok-firmware-fx2lafw-bin-x.y.z.tar.gz tarball which
only contains pre-built *.fw files (and some docs), but no source code
of fx2lafw.

This tarball can be provided as a convenience download for users who do
not want to mess with building their own firmware files from source.

Makefile

index 72a979296eb1c94b85b1f9234163b382f96c29e6..1170cffeea3b9f7140d5267b60714398ce975219 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -26,6 +26,7 @@ DESTDIR ?= /usr/local/share/sigrok-firmware
 REPO = git://sigrok.git.sourceforge.net/gitroot/sigrok/fx2lafw
 
 TARBALLDIR = sigrok-firmware-fx2lafw-$(VERSION)
+TARBALLBINDIR = sigrok-firmware-fx2lafw-bin-$(VERSION)
 
 all: build-all
 
@@ -56,6 +57,14 @@ dist:
        @tar -c -z -f $(TARBALLDIR).tar.gz $(TARBALLDIR)
        @rm -rf $(TARBALLDIR)
 
+distbin: build-all ChangeLog
+       @mkdir $(TARBALLBINDIR)
+       @cp hw/*/build/*.fw $(TARBALLBINDIR)
+       @cp README NEWS ChangeLog $(TARBALLBINDIR)
+       @tar -c -z -f $(TARBALLBINDIR).tar.gz $(TARBALLBINDIR)
+       @rm -rf $(TARBALLBINDIR)
+       @rm -f ChangeLog
+
 install: build-all
        @mkdir -p $(DESTDIR)
        @cp hw/saleae-logic/build/*.fw $(DESTDIR)