aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 6d1890b..18888e9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -126,9 +126,22 @@ endif
.PHONY: ChangeLog test
ChangeLog:
+ @if [ -e ".svn" ]; then \
+ $(MAKE) ChangeLog-svn; \
+ elif [ -e ".git" ]; then \
+ $(MAKE) ChangeLog-git; \
+ else \
+ echo "Unknown SCM (not SVN nor GIT)";\
+ exit 1; \
+ fi;
+
+ChangeLog-svn:
LC_ALL=C svn2cl
rm -f *.bak
+ChangeLog-git:
+ @git2cl >ChangeLog
+
test: $(pkg_gdata) $(pkg_gscripts) $(arch_macrosfiles) $(pkg_gconfig)
sh tests.sh