Simplify autogen.sh by using autoreconf
[hvgrip.git] / Makefile.am
index fdf3a60..a60fe2f 100644 (file)
@@ -1,9 +1,42 @@
+.PHONY: changelog
+
 SUBDIRS = po src pixmaps doc contrib
 
 EXTRA_DIST = \
         grip.desktop \
        CREDITS \
-       grip.spec.in
+       grip.spec.in \
+        autogen.sh
 
 Applicationsdir = $(datadir)/applications
 Applications_DATA = grip.desktop
+
+ACLOCAL = aclocal -I $(ac_aux_dir)
+ACLOCAL_AMFLAGS = -I m4
+
+CLEANFILES = *~
+
+MAINTAINERCLEANFILES = \
+    ChangeLog \
+    $(top_srcdir)/Makefile.in \
+    $(top_srcdir)/aclocal.m4 \
+    $(top_srcdir)/configure \
+    $(top_srcdir)/config.h.in \
+    $(top_srcdir)/stamp-h.in \
+    $(ac_aux_dir)/depcomp \
+    $(ac_aux_dir)/install-sh \
+    $(ac_aux_dir)/missing \
+    $(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