mirror of
https://github.com/brl/mutter.git
synced 2024-11-13 09:46:08 -05:00
18e9d0db6f
The ChangeLog creation rules should be moved to their own file, to make it easier to fix or change them in the future.
20 lines
573 B
Makefile
20 lines
573 B
Makefile
PREV_RELEASE=git-import
|
|
|
|
changelog:
|
|
@if test -d "$(srcdir)/.git"; \
|
|
then \
|
|
to=""; \
|
|
from="$(PREV_RELEASE)"; \
|
|
echo Creating ChangeLog && \
|
|
( cd "$(top_srcdir)" && \
|
|
echo '# Generated by configure. Do no edit.'; echo; \
|
|
$(top_srcdir)/missing --run perl $(top_srcdir)/build/gen-changelog.pl $$from..$$to ) > ChangeLog.tmp \
|
|
&& mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
|
|
|| ( rm -f ChangeLog.tmp ; \
|
|
echo Failed to generate ChangeLog >&2 ); \
|
|
else \
|
|
echo A git checkout is required to generate a ChangeLog >&2; \
|
|
fi
|
|
|
|
dist-hook: changelog
|