From f3fc079bad26f5deb0acac4da4419a1a3b19fac1 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Tue, 19 Apr 2011 11:30:21 +0200 Subject: Hook up ChangeLog to be either bzr or git, depending which is available Signed-off-by: Henrik Rydberg --- Makefile.am | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 183516c..a97bdb1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -8,7 +8,15 @@ INCLUDES = $(top_srcdir)/include/ .PHONY: ChangeLog INSTALL INSTALL: $(INSTALL_CMD) + ChangeLog: - bzr log > ChangeLog + @if test -d ".bzr"; then \ + cmd=bzr; \ + elif test -d ".git"; then \ + cmd=git; \ + else \ + cmd="echo could not generate change"; \ + fi; \ + $${cmd} log > ChangeLog; dist-hook: ChangeLog INSTALL -- cgit v1.2.3