Commit 44727dfa authored by Diego Biurrun's avatar Diego Biurrun

build: Only create ChangeLog file from Git if Git is available

parent be124318
......@@ -7,9 +7,11 @@ dist_doc_DATA = AUTHORS COPYING NEWS README ChangeLog
MAINTAINERCLEANFILES = ChangeLog
ChangeLog: $(wildcard $(srcdir)/.git/logs/HEAD)
if GIT
-cd $(srcdir) && git log > $(abs_builddir)/$(@)-tmp
test -s $(@)-tmp && mv $(@)-tmp $(@)
-rm -f $(@)-tmp
endif
test -e $(@) || touch $(@)
lib_LTLIBRARIES = libdvdcss.la
......
......@@ -228,6 +228,9 @@ AS_IF([test "x$DOXYGEN" = "x"], [
])
AM_CONDITIONAL([APIDOC], [test "x$DOXYGEN" != "x"])
AC_PATH_PROG([GIT], [git])
AM_CONDITIONAL([GIT], [test "x$GIT" != "x"])
AC_SUBST(DVDCSS_LDFLAGS)
AC_OUTPUT([
Makefile
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment