Fix compiler warning about inline function
[dockapps/wmnotify.git] / Makefile.am
index 8f53757..71bc1bc 100644 (file)
@@ -1,21 +1,42 @@
 # Makefile.am -- Process this file with automake to produce Makefile.in
 
+.PHONY: changelog
+
 AUTOMAKE_OPTIONS = gnu
 
 SUBDIRS = src doc
 
 ## We want these in the dist tarball
 EXTRA_DIST = autogen.sh \
-             $(ac_aux_dir)/acx_pthread.m4 \
+             m4/acx_pthread.m4 \
              pixmaps
 
 ACLOCAL_AMFLAGS = -I m4
 
 CLEANFILES = *~
 
-MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure config-h.in \
-                       stamp-h.in $(ac_aux_dir)/depcomp \
-                       $(ac_aux_dir)/install-sh $(ac_aux_dir)/missing \
-                       $(ac_aux_dir)/mkinstalldirs $(ac_aux_dir)/config.guess \
-                       $(ac_aux_dir)/config.sub $(ac_aux_dir)/ltmain.sh \
-                       $(ac_aux_dir)/compile
+MAINTAINERCLEANFILES = \
+    Makefile.in \
+    aclocal.m4 \
+    configure \
+    config-h.in \
+    stamp-h.in \
+    ChangeLog \
+    $(ac_aux_dir)/depcomp \
+    $(ac_aux_dir)/install-sh \
+    $(ac_aux_dir)/missing \
+    $(ac_aux_dir)/mkinstalldirs \
+    $(ac_aux_dir)/config.guess \
+    $(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