X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=Makefile.am;h=7bc25af26db0c0d479c1945a98671ad0635d11a9;hp=461bca4999b23f10f4f8a982d0a5841c516a0e2f;hb=0d7a948c8d67abbf6d24fd8687fda96eae23f95b;hpb=29f0ac0efd112f058fc2058665bb66daa80fb9f7 diff --git a/Makefile.am b/Makefile.am index 461bca4999..7bc25af26d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -68,6 +68,9 @@ TCL_FILES = find $(srcdir)/$(TCL_PATH) -name '*.cfg' -o -name '*.tcl' | \ sed -e 's,^$(srcdir)/$(TCL_PATH),,' dist-hook: + if test -d $(srcdir)/.git -a \( ! -e $(distdir)/ChangeLog -o -w $(distdir)/ChangeLog \) ; then \ + git --git-dir $(srcdir)/.git log | $(srcdir)/tools/git2cl/git2cl > $(distdir)/ChangeLog ; \ + fi for i in $$($(TCL_FILES)); do \ j="$(distdir)/$(TCL_PATH)/$$i" && \ mkdir -p "$$(dirname $$j)" && \