mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 10:00:45 -05:00
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:
parent
fbdc967575
commit
e8bd46b82b
@ -11,7 +11,7 @@ PREV_CHANGELOG_VERSION=$$(if test "x$$(echo "($$version-0.1)*2/2"|bc)" = "x$$(ec
|
|||||||
CHANGELOGS = ChangeLog \
|
CHANGELOGS = ChangeLog \
|
||||||
`version=$(CURR_CHANGELOG_VERSION); \
|
`version=$(CURR_CHANGELOG_VERSION); \
|
||||||
version=$(PREV_CHANGELOG_VERSION); \
|
version=$(PREV_CHANGELOG_VERSION); \
|
||||||
while test "x$$version" != xgit-import; do \
|
while test "x$$version" != "xgit-import"; do \
|
||||||
echo ChangeLog.pre-$$version; \
|
echo ChangeLog.pre-$$version; \
|
||||||
version=$(PREV_CHANGELOG_VERSION); \
|
version=$(PREV_CHANGELOG_VERSION); \
|
||||||
done`
|
done`
|
||||||
@ -19,6 +19,7 @@ CHANGELOGS = ChangeLog \
|
|||||||
CLEANFILES += $(srcdir)/ChangeLog.cache-*
|
CLEANFILES += $(srcdir)/ChangeLog.cache-*
|
||||||
|
|
||||||
changelogs:
|
changelogs:
|
||||||
|
@cp -f $(top_srcdir)/doc/ChangeLog.pre-git-import $(srcdir)
|
||||||
@$(MAKE) $(AM_MAKEFLAGS) $(CHANGELOGS)
|
@$(MAKE) $(AM_MAKEFLAGS) $(CHANGELOGS)
|
||||||
|
|
||||||
dist-hook: changelogs
|
dist-hook: changelogs
|
||||||
@ -45,14 +46,14 @@ $(srcdir)/ChangeLog:
|
|||||||
echo A git checkout is required to generate this file >> $@); \
|
echo A git checkout is required to generate this file >> $@); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
DISTCLEANFILES += ChangeLog.cache-*
|
DISTCLEANFILES += ChangeLog.cache-* ChangeLog.pre-git-import
|
||||||
|
|
||||||
ChangeLog.cache-*..: .git
|
ChangeLog.cache-*..: .git
|
||||||
|
|
||||||
ChangeLog%: $(srcdir)/ChangeLog%
|
ChangeLog%: $(srcdir)/ChangeLog%
|
||||||
|
|
||||||
$(srcdir)/ChangeLog.cache-% $(srcdir)/ChangeLog.pre-%:
|
$(srcdir)/ChangeLog.cache-% $(srcdir)/ChangeLog.pre-%:
|
||||||
@echo Creating $@
|
@echo "Creating $@"
|
||||||
@if test -d "$(srcdir)/.git"; then \
|
@if test -d "$(srcdir)/.git"; then \
|
||||||
(cd "$(srcdir)" && \
|
(cd "$(srcdir)" && \
|
||||||
version=$$(echo "$@" | sed 's/.*ChangeLog\([.].*-\)\?//'); \
|
version=$$(echo "$@" | sed 's/.*ChangeLog\([.].*-\)\?//'); \
|
||||||
|
Loading…
Reference in New Issue
Block a user