From: Uwe Hermann Date: Tue, 24 Jul 2012 19:04:50 +0000 (+0200) Subject: Makefile: Add a 'distbin' target. X-Git-Tag: sigrok-firmware-fx2lafw-0.1.0^0 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d9531f65337ecc903759f9f55bc32719e93d2d27;p=sigrok-firmware-fx2lafw.git Makefile: Add a 'distbin' target. 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. --- diff --git a/Makefile b/Makefile index 72a97929..1170cffe 100644 --- 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)