]> sigrok.org Git - sigrok-firmware.git/commitdiff
Makefile: Generate/add ChangeLog for dist target.
authorUwe Hermann <redacted>
Wed, 23 May 2012 16:36:30 +0000 (18:36 +0200)
committerUwe Hermann <redacted>
Thu, 24 May 2012 08:57:39 +0000 (10:57 +0200)
Makefile

index e36ce4f82fc5d0c1fafc86d33c9c4e5f990908d6..26025c77a60a0b1b8be155a706332fdb2a5933b0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -23,8 +23,12 @@ VERSION = "0.1.0"
 all:
        @echo "Run 'make dist' to create a tarball."
 
-dist:
+ChangeLog:
+       git log > ChangeLog || touch ChangeLog
+
+dist: ChangeLog
        @tar -c -v -z --exclude=.git --exclude=Makefile \
                --exclude=sigrok-firmware-$(VERSION).tar.gz \
                -f sigrok-firmware-$(VERSION).tar.gz *
+       @rm -f ChangeLog