NULL terminate strncpy destination string
[dockapps/wmnotify.git] / Makefile.am
index 6b54cee..71bc1bc 100644 (file)
@@ -1,5 +1,7 @@
 # Makefile.am -- Process this file with automake to produce Makefile.in
 
+.PHONY: changelog
+
 AUTOMAKE_OPTIONS = gnu
 
 SUBDIRS = src doc
@@ -19,6 +21,7 @@ MAINTAINERCLEANFILES = \
     configure \
     config-h.in \
     stamp-h.in \
+    ChangeLog \
     $(ac_aux_dir)/depcomp \
     $(ac_aux_dir)/install-sh \
     $(ac_aux_dir)/missing \
@@ -27,3 +30,13 @@ MAINTAINERCLEANFILES = \
     $(ac_aux_dir)/config.sub \
     $(ac_aux_dir)/ltmain.sh \
     $(ac_aux_dir)/compile
+
+changelog:
+       @if test -d $(srcdir)/.git; then          \
+         $(srcdir)/build-aux/gitlog-to-changelog \
+           --format='%s%n%n%b%n'                 \
+           --no-cluster                          \
+           --strip-tab                           \
+           --strip-cherry-pick                   \
+           >ChangeLog;                           \
+       fi