1# Build and install the GNU Autoconf Archive. 2# 3# Copyright (c) 2019 Autoconf Archive Maintainers <autoconf-archive-maintainers@gnu.org> 4# 5# This program is free software: you can redistribute it and/or modify it under 6# the terms of the GNU General Public License as published by the Free Software 7# Foundation, either version 3 of the License, or (at your option) any later 8# version. 9# 10# This program is distributed in the hope that it will be useful, but WITHOUT 11# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 12# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. 13# 14# You should have received a copy of the GNU General Public License along with 15# this program. If not, see <https://www.gnu.org/licenses/>. 16 17SUBDIRS = doc 18 19dist_doc_DATA = AUTHORS COPYING COPYING.EXCEPTION README 20aclocaldir = $(datadir)/aclocal 21dist_aclocal_DATA = $(M4FILES) 22EXTRA_DIST = build-aux/git-version-gen build-aux/gitlog-to-changelog 23 24clean-local: 25 @rm -rf $(srcdir)/stage $(srcdir)/macro.pyc __pycache__ 26 @rm -f $(DIST_ARCHIVES) 27 28maintainer-clean-local: 29 @rm -rf $(srcdir)/build-aux 30 @rm -f configure Makefile.in aclocal.m4 AUTHORS ChangeLog 31 @rm -f INSTALL config.log config.status configure maint.mk 32 @rm -f autoconf-archive-*.*.*.tar.* GNUmakefile README 33 34dist-hook: 35 echo $(VERSION) > $(distdir)/.tarball-version 36 if test -d .git; then \ 37 echo > $(distdir)/cl-t '# Copyright (c) 2019 Autoconf Archive Maintainers <autoconf-archive-maintainers@gnu.org>'; \ 38 echo >>$(distdir)/cl-t '#'; \ 39 echo >>$(distdir)/cl-t '# Copying and distribution of this file, with or without modification, are'; \ 40 echo >>$(distdir)/cl-t '# permitted in any medium without royalty provided the copyright notice and'; \ 41 echo >>$(distdir)/cl-t '# this notice are preserved. This file is offered as-is, without any warranty.'; \ 42 echo >>$(distdir)/cl-t ''; \ 43 $(top_srcdir)/build-aux/gitlog-to-changelog >>$(distdir)/cl-t -- master $(top_srcdir)/m4; \ 44 rm -f $(distdir)/ChangeLog; \ 45 mv $(distdir)/cl-t $(distdir)/ChangeLog; \ 46 $(top_srcdir)/gen-authors.sh >$(distdir)/au-t; \ 47 rm -f $(distdir)/AUTHORS; \ 48 mv $(distdir)/au-t $(distdir)/AUTHORS; \ 49 fi 50