]> git.sesse.net Git - vlc/blobdiff - doc/Makefile.am
macosx: Fix controller playlist toggling to use the contentRect and not the window...
[vlc] / doc / Makefile.am
index 036a61c61325dcfd22d42e53e8fd47a9e3dcce8b..d16c337313667c0663b352529438f1a45ccfa38e 100644 (file)
@@ -50,15 +50,18 @@ EXTRA_DIST = \
 DISTCLEANFILES = $(CHANGELOGS)
 
 $(CHANGELOGS): Makefile.am
-       if test -f "$(top_srcdir)/doc/$@"; then \
-               cp "$(top_srcdir)/doc/$@" "$@" ; \
-       else \
-               y="$$(echo "$@" | sed -e 's,ChangeLog-,,')" ; \
-               git --git-dir=$(top_srcdir)/.git log \
+       if test -d "$(top_srcdir)/.git"; then \
+               y="$@"; y="$${y##ChangeLog-}" ; \
+               git --git-dir="$(top_srcdir)/.git" log \
                        --since="$$y-01-01" \
                        --until="$$y-12-31 23:00:00 -0100" \
                        > "$@" ; \
        fi
 
 # This one needs to be rebuilt all the time :)
-.PHONY: ChangeLog-2008
+.PHONY: ChangeLog-2008 changelogs
+
+changelogs: $(CHANGELOGS)
+
+#distclean-hook:
+#      test "$(srcdir)" = "$(builddir)" || rm -f -- $(CHANGELOGS)