1 # Makefile.am - Top level makefile for GnuPG
2 # Copyright (C) 2001, 2004, 2012 Free Software Foundation, Inc.
4 # This file is part of GnuPG.
6 # GnuPG is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
11 # GnuPG is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, see <http://www.gnu.org/licenses/>.
19 ## Process this file with automake to produce Makefile.in
21 ACLOCAL_AMFLAGS = -I m4 -I gl/m4
22 DISTCHECK_CONFIGURE_FLAGS = --enable-symcryptrun --enable-mailto --enable-gpgtar
24 GITLOG_TO_CHANGELOG=gitlog-to-changelog
26 EXTRA_DIST = scripts/config.rpath autogen.sh README.GIT \
27 ChangeLog-2011 po/ChangeLog-2011 scripts/ChangeLog-2011
29 DISTCLEANFILES = g10defs.h
77 SUBDIRS = m4 gl include jnlib common ${kbx} \
78 ${gpg} ${keyserver} ${sm} ${agent} ${scd} ${tools} po ${doc} ${tests}
80 dist_doc_DATA = README
83 dist-hook: gen-ChangeLog
84 echo "$(VERSION)" > $(distdir)/VERSION
87 gen_start_date = 2011-12-01T06:00:00
91 if test -d $(top_srcdir)/.git; then \
92 (cd $(top_srcdir) && \
93 $(GITLOG_TO_CHANGELOG) --append-dot --tear-off \
94 --amend=scripts/git-log-fix \
95 --since=$(gen_start_date) ) > $(distdir)/cl-t; \
96 cat $(top_srcdir)/scripts/git-log-footer >> $(distdir)/cl-t; \
97 rm -f $(distdir)/ChangeLog; \
98 mv $(distdir)/cl-t $(distdir)/ChangeLog; \
103 $(MAKE) $(AM_MAKEFLAGS) install prefix=/usr/local/stow/gnupg