Commit cc681022 authored by Debarshi Ray's avatar Debarshi Ray

build: Drop ChangeLog and INSTALL, and silence Automake warnings

The ChangeLog generation was broken forever because it used
$(top_srcdir)/missing, not $(top_srcdir)/config/missing. Including the
Git log in tarballs isn't particularly useful. People are better off
using the Git repository directly.

A nice side-effect of switching Automake to "foreign" is that it
silences these warnings:
  src/Makefile.am:563: warning: shell $(GLIB_COMPILE_RESOURCES:
    non-POSIX variable name
  src/Makefile.am:563: (probably a GNU make extension)

The loss of INSTALL, caused by "foreign", isn't a big problem because
the upcoming Meson port would have rendered it obsolete anyway. Users
can easily look up how to build a Autotools-based project.
parent c772ba1a
2012-04-22 Debarshi Ray <debarshir@gnome.org>
* *: The ChangeLog is auto-generated when releasing. If you
are seeing this, use 'git log' for a detailed list of changes.
......@@ -7,7 +7,6 @@ photosdoc_DATA = \
ARTISTS \
AUTHORS \
COPYING \
ChangeLog \
NEWS \
README \
$(NULL)
......@@ -30,7 +29,6 @@ MAINTAINERCLEANFILES = \
$(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \
$(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
$(srcdir)/AUTHORS \
$(srcdir)/INSTALL \
$(srcdir)/config.h.in \
$(srcdir)/omf.make \
$(srcdir)/xmldocs.make \
......@@ -54,20 +52,6 @@ AUTHORS:
echo Failed to generate $@ >&2 ); \
fi
dist-hook:
@if test -d "$(srcdir)/.git"; \
then \
echo Creating ChangeLog && \
( cd "$(top_srcdir)" && \
echo '# Generated — do not edit.'; echo; \
$(top_srcdir)/missing --run git log --stat ) > ChangeLog.tmp \
&& mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
|| ( rm -f ChangeLog.tmp ; \
echo Failed to generate ChangeLog >&2 ); \
else \
echo A git clone is required to generate a ChangeLog >&2; \
fi
.PHONY: AUTHORS
-include $(top_srcdir)/git.mk
......@@ -12,7 +12,7 @@ AC_CONFIG_SRCDIR([src])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
AM_INIT_AUTOMAKE([dist-xz no-dist-gzip serial-tests tar-ustar])
AM_INIT_AUTOMAKE([dist-xz foreign no-dist-gzip serial-tests tar-ustar])
AM_MAINTAINER_MODE([enable])
AX_IS_RELEASE([git-directory])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment