invoke it, and have commit and build-release call it.
commit-changelog:
(cd $(top_srcdir) && cvs commit -m "# changelog commit" ChangeLog)
-commit: pclean check-security commit-real changelog commit-changelog
+commit: pclean check-security commit-real update-changelog commit-changelog
-changelog:
+update-changelog:
(cd $(top_srcdir); \
cvs update ChangeLog; \
sh ./mkchangelog.sh | fmt -c | cat - ChangeLog > ChangeLog.$$$$ && mv ChangeLog.$$$$ ChangeLog; \
$${VISUAL:-vi} ChangeLog)
-ChangeLog: changelog
+#ChangeLog: changelog
# kluge around automake problems.
echo 'const char *ReleaseDate = "'`date +%Y-%m-%d`'";' > reldate.h
-make changelog
+make update-changelog
# now, prepare the distribution tar balls
make config.status
./config.status
make update-doc
-make changelog
+make update-changelog
# build them