srd: Generate ChangeLog from git upon 'make dist'.
[libsigrokdecode.git] / Makefile.am
index 58ed2520f040c9aad6664ff8da97b56113a55850..ccaa2dbe04be9e8f2b805d4bfa83a0444af6da5f 100644 (file)
@@ -39,3 +39,11 @@ pkgconfig_DATA = libsigrokdecode.pc
 
 EXTRA_DIST = Doxyfile
 
+MAINTAINERCLEANFILES = ChangeLog
+
+.PHONY: ChangeLog
+ChangeLog:
+       git --git-dir $(top_srcdir)/../.git log > ChangeLog || touch ChangeLog
+
+dist-hook: ChangeLog
+