build: Fix up ChangeLog build generation

Since the pre-git-import ChangeLog has been moved, we need to put it
back in the list temporarily when generating the rest.
This commit is contained in:
Emmanuele Bassi 2011-06-13 17:20:19 +01:00
parent fbdc967575
commit e8bd46b82b

View File

@ -11,7 +11,7 @@ PREV_CHANGELOG_VERSION=$$(if test "x$$(echo "($$version-0.1)*2/2"|bc)" = "x$$(ec
CHANGELOGS = ChangeLog \
`version=$(CURR_CHANGELOG_VERSION); \
version=$(PREV_CHANGELOG_VERSION); \
while test "x$$version" != xgit-import; do \
while test "x$$version" != "xgit-import"; do \
echo ChangeLog.pre-$$version; \
version=$(PREV_CHANGELOG_VERSION); \
done`
@ -19,6 +19,7 @@ CHANGELOGS = ChangeLog \
CLEANFILES += $(srcdir)/ChangeLog.cache-*
changelogs:
@cp -f $(top_srcdir)/doc/ChangeLog.pre-git-import $(srcdir)
@$(MAKE) $(AM_MAKEFLAGS) $(CHANGELOGS)
dist-hook: changelogs
@ -45,14 +46,14 @@ $(srcdir)/ChangeLog:
echo A git checkout is required to generate this file >> $@); \
fi
DISTCLEANFILES += ChangeLog.cache-*
DISTCLEANFILES += ChangeLog.cache-* ChangeLog.pre-git-import
ChangeLog.cache-*..: .git
ChangeLog%: $(srcdir)/ChangeLog%
$(srcdir)/ChangeLog.cache-% $(srcdir)/ChangeLog.pre-%:
@echo Creating $@
@echo "Creating $@"
@if test -d "$(srcdir)/.git"; then \
(cd "$(srcdir)" && \
version=$$(echo "$@" | sed 's/.*ChangeLog\([.].*-\)\?//'); \