From: Uwe Hermann Date: Tue, 17 Apr 2012 22:02:54 +0000 (+0200) Subject: cli: Generate ChangeLog upon 'make dist'. X-Git-Tag: sigrok-cli-0.3.1~25 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=b156de5c04a3e6906ecbbaf0b8b47cf61a152e82;p=sigrok-cli.git cli: Generate ChangeLog upon 'make dist'. --- diff --git a/Makefile.am b/Makefile.am index b8ebaac..2aeb66c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -25,3 +25,11 @@ bin_PROGRAMS = sigrok-cli sigrok_cli_SOURCES = sigrok-cli.c sigrok-cli.h parsers.c anykey.c +DISTCLEANFILES = ChangeLog + +.PHONY: ChangeLog +ChangeLog: + git --git-dir $(top_srcdir)/../.git log > ChangeLog || touch ChangeLog + +dist-hook: ChangeLog +