]> sigrok.org Git - libsigrokdecode.git/commitdiff
Makefile: Generate/add ChangeLog for dist target.
authorUwe Hermann <redacted>
Thu, 10 May 2012 16:57:09 +0000 (18:57 +0200)
committerUwe Hermann <redacted>
Thu, 10 May 2012 22:26:30 +0000 (00:26 +0200)
Makefile

index b8ae63e6774ffd8e65e3edcf38f14efd6b94bebf..7dea2f86065f42e47c4b3e406262d80b93e7c845 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-dumps-$(VERSION).tar.gz \
                -f sigrok-dumps-$(VERSION).tar.gz *
+       @rm -f ChangeLog