1 # Makefile.am - main makefile for GnuPG
2 # Copyright (C) 2001, 2004, 2010 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 AUTOMAKE_OPTIONS = dist-bzip2 no-dist-gzip
23 DISTCHECK_CONFIGURE_FLAGS = --enable-symcryptrun --enable-mailto --enable-gpgtar
25 GITLOG_TO_CHANGELOG=gitlog-to-changelog
27 EXTRA_DIST = scripts/config.rpath scripts/potomo autogen.sh README.GIT \
28 ChangeLog-2011 po/ChangeLog-2011 scripts/ChangeLog-2011 \
29 scripts/gitlog-to-changelog \
30 scripts/git-log-fix scripts/git-log-footer
31 DISTCLEANFILES = g10defs.h
91 SUBDIRS = m4 gl include common ${kbx} \
92 ${gpg} ${keyserver} ${sm} ${agent} ${scd} ${g13} ${dirmngr} \
93 ${tools} po ${doc} ${tests}
95 dist_doc_DATA = README
98 dist-hook: gen-ChangeLog
99 echo "$(VERSION)" > $(distdir)/VERSION
104 for i in $$($(top_srcdir)/scripts/potomo \
105 --get-linguas $(top_srcdir)/po) ; do \
106 $(MKDIR_P) "$(DESTDIR)$(localedir)/$$i/LC_MESSAGES" || true; \
107 rm -f "$(DESTDIR)$(localedir)/$$i/LC_MESSAGES/gnupg2.mo" \
108 2>/dev/null || true; \
109 $(top_srcdir)/scripts/potomo $(top_srcdir)/po/$$i.po \
110 "$(DESTDIR)$(localedir)/$$i/LC_MESSAGES/gnupg2.mo" ; \
115 gen_start_date = 2011-12-01T06:00:00
116 .PHONY: gen-ChangeLog
118 if test -d $(top_srcdir)/.git; then \
119 (cd $(top_srcdir) && \
120 $(GITLOG_TO_CHANGELOG) --append-dot --tear-off \
121 --amend=scripts/git-log-fix \
122 --since=$(gen_start_date) ) > $(distdir)/cl-t; \
123 cat $(top_srcdir)/scripts/git-log-footer >> $(distdir)/cl-t; \
124 rm -f $(distdir)/ChangeLog; \
125 mv $(distdir)/cl-t $(distdir)/ChangeLog; \
130 $(MAKE) $(AM_MAKEFLAGS) install prefix=/usr/local/stow/gnupg