]> sigrok.org Git - sigrok-firmware-fx2lafw.git/commitdiff
(Re-)add the convenience target 'distbin'.
authorUwe Hermann <redacted>
Sat, 26 Jan 2013 12:15:47 +0000 (13:15 +0100)
committerUwe Hermann <redacted>
Fri, 22 Feb 2013 07:53:00 +0000 (08:53 +0100)
This creates a sigrok-firmware-fx2lafw-bin-x.y.z.tar.gz tarball containing
just the *.fw files, so that users don't have to build them manually.

The normal 'make dist' produces a source code tarball, as usual.

Makefile.am

index b7341015487d9026c16b0b2550f6e0664c4b06ad..0ae87b1c178f793f9b5af2b325ff8a613352853f 100644 (file)
@@ -38,6 +38,17 @@ ChangeLog:
 
 dist-hook: ChangeLog
 
+# Creates a convenience tarball with just the generated *.fw files, so that
+# the users don't have to build them manually.
+TARBALL=$(PACKAGE)-bin-$(VERSION)
+distbin: all ChangeLog
+       $(AM_V_at)$(MKDIR_P) $(TARBALL)
+       $(AM_V_at)$(INSTALL_DATA) hw/*/*.fw $(TARBALL)
+       $(AM_V_at)$(INSTALL_DATA) README NEWS ChangeLog COPYING* $(TARBALL)
+       $(AM_V_at)tar -c -z -f $(TARBALL).tar.gz $(TARBALL)
+       $(AM_V_at)-rm -rf $(TARBALL)
+       $(AM_V_at)-rm -f ChangeLog
+
 clean-local:
        $(AM_V_at)-rm -f *.asm *.lst *.rel *.rst *.sym