ref: 44727dfa01db3455a5bf4146dd3120dcbdb6dadb
parent: be12431849472c9aa483aea8ddf176a763bef1dc
author: Diego Biurrun <[email protected]>
date: Sun Nov 2 16:43:55 EST 2014
build: Only create ChangeLog file from Git if Git is available
--- a/Makefile.am
+++ b/Makefile.am
@@ -7,9 +7,11 @@
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
--- a/configure.ac
+++ b/configure.ac
@@ -228,6 +228,9 @@
])
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