[libdvdcss-devel] [PATCH] build: proper dependencies for ChangeLog generation target
Diego Biurrun
diego at biurrun.de
Tue Feb 19 15:23:17 CET 2013
This fixes the ChangeLog file getting continuously rebuilt instead
of after each Git commit, which is the case now.
---
Now works from within the release tarball as well, "make distcheck" passes.
Makefile.am | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 06ceb7f..65d2503 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -6,13 +6,11 @@ dist_doc_DATA = AUTHORS COPYING NEWS README ChangeLog
DISTCLEANFILES = ChangeLog
-ChangeLog: stamp-changelog
-
-stamp-changelog:
- -git log > ChangeLog-tmp
- test -s ChangeLog-tmp && mv ChangeLog-tmp ChangeLog
- -rm -f ChangeLog-tmp
- test -e ChangeLog || touch ChangeLog
+ChangeLog: $(wildcard $(srcdir)/.git/logs/HEAD)
+ -cd $(srcdir) && git log > $(abs_builddir)/$(@)-tmp
+ test -s $(@)-tmp && mv $(@)-tmp $(@)
+ -rm -f $(@)-tmp
+ test -e $(@) || touch $(@)
lib_LTLIBRARIES = libdvdcss.la
EXTRA_PROGRAMS = csstest dvd_region
--
1.7.9.5
More information about the libdvdcss-devel
mailing list