build: Make ChangeLog generation distcheck-safe
This commit is contained in:
parent
e5ef649be3
commit
37829c15b5
|
@ -21,7 +21,6 @@
|
||||||
.deps/
|
.deps/
|
||||||
.dirstamp
|
.dirstamp
|
||||||
.libs/
|
.libs/
|
||||||
/ChangeLog
|
|
||||||
/Makefile
|
/Makefile
|
||||||
/config.*
|
/config.*
|
||||||
/doxy/
|
/doxy/
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
The ChangeLog is auto-generated when releasing. If you
|
||||||
|
are seeing this, use 'git log' for a detailed list of changes.
|
15
Makefile.am
15
Makefile.am
|
@ -703,11 +703,16 @@ all-local: $(BUILD_EXTRA)
|
||||||
install-exec-local: $(INSTALL_EXTRA)
|
install-exec-local: $(INSTALL_EXTRA)
|
||||||
clean-local: $(CLEAN_EXTRA)
|
clean-local: $(CLEAN_EXTRA)
|
||||||
|
|
||||||
MAINTAINERCLEANFILES = ChangeLog
|
.PHONY: dist-changelog
|
||||||
|
|
||||||
.PHONY: ChangeLog
|
dist-hook: dist-changelog
|
||||||
ChangeLog:
|
|
||||||
git --git-dir '$(top_srcdir)/.git' log >$@ || touch $@
|
|
||||||
|
|
||||||
dist-hook: ChangeLog
|
dist-changelog:
|
||||||
|
$(AM_V_at)if test ! -d '$(top_srcdir)/.git'; then \
|
||||||
|
cp -f '$(top_srcdir)/ChangeLog' "$(top_distdir)/ChangeLog"; \
|
||||||
|
elif git -C '$(top_srcdir)' log >.ChangeLog.tmp; then \
|
||||||
|
mv -f .ChangeLog.tmp "$(top_distdir)/ChangeLog"; \
|
||||||
|
else \
|
||||||
|
rm -f .ChangeLog.tmp; exit 1; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue