summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: bc41c7809d5593da9890a943e84969bf0340e077 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Build and install the Autoconf Archive.
#
# Copyright (c) 2010 by the Autoconf Archive Maintainers
# Licensed under the terms of the GNU General Public License.

SUBDIRS                 = doc

dist_pkgdata_DATA       = AUTHORS COPYING README
aclocaldir              = $(datadir)/aclocal
dist_aclocal_DATA       = $(M4FILES)
EXTRA_DIST              = build-aux/git-version-gen build-aux/gitlog-to-changelog

# maintainer rules

clean-local:
	@rm -rf $(srcdir)/stage $(srcdir)/macro.pyc
	@rm -f $(DIST_ARCHIVES)

maintainer-clean-local:
	@rm -rf $(srcdir)/build-aux
	@rm -f configure Makefile.in aclocal.m4 AUTHORS ChangeLog
	@rm -f INSTALL config.log config.status configure maint.mk
	@rm -f autoconf-archive-*.*.*.tar.* GNUmakefile

dist-hook:
	echo $(VERSION) > $(distdir)/.tarball-version
	if test -d .git; then						\
	  $(top_srcdir)/build-aux/gitlog-to-changelog			\
	    >$(distdir)/cl-t -- master $(top_srcdir)/m4;		\
	  rm -f $(distdir)/ChangeLog;					\
	  mv $(distdir)/cl-t $(distdir)/ChangeLog;			\
	  $(top_srcdir)/gen-authors.sh >$(distdir)/au-t;		\
	  rm -f $(distdir)/AUTHORS;					\
	  mv $(distdir)/au-t $(distdir)/AUTHORS;			\
	fi