From: Uwe Hermann Date: Sat, 26 Jan 2013 12:15:47 +0000 (+0100) Subject: (Re-)add the convenience target 'distbin'. X-Git-Tag: sigrok-firmware-fx2lafw-0.1.1~15 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=3cdd47225331282c0e1d37ba8d7b947e84f48d9e;p=sigrok-firmware-fx2lafw.git (Re-)add the convenience target 'distbin'. 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. --- diff --git a/Makefile.am b/Makefile.am index b7341015..0ae87b1c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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