summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am10
1 files changed, 9 insertions, 1 deletions
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