1 # Copyright (C) 1998,1999,2000,2001,2003 Free Software Foundation, Inc.
3 # This file is part of GnuPG.
5 # GnuPG is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
10 # GnuPG is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
19 ## Process this file with automake to produce Makefile.in
21 ACLOCAL_AMFLAGS = -I m4
22 DISTCHECK_CONFIGURE_FLAGS = --enable-selinux-support
23 AUTOMAKE_OPTIONS = dist-bzip2 filename-length-max=99
31 SUBDIRS = m4 intl zlib util mpi cipher tools g10 keyserver po doc ${checks}
32 EXTRA_DIST = scripts/config.rpath PROJECTS BUGS config.h.in autogen.sh
33 DISTCLEANFILES = g10defs.h
35 # Add all the files listed in "distfiles" files to the distribution,
36 # apply version numbers to some files and create a VERSION file which
37 # we need for the Prereq: patch file trick.
40 for file in `cd $(top_srcdir); \
41 find scripts mpi include -type f -name distfiles`; do \
42 dir=`dirname $$file` ; $(mkinstalldirs) $(distdir)/$$dir ; \
43 for i in distfiles `cat $(top_srcdir)/$$file` ; do \
44 ln $(top_srcdir)/$$dir/$$i $(distdir)/$$dir/$$i 2> /dev/null \
45 || cp -p $(top_srcdir)/$$dir/$$i $(distdir)/$$dir/$$i; \
49 sed -e 's/@pkg_version@/$(VERSION)/g' \
50 $(top_srcdir)/scripts/gnupg.spec.in \
51 > $(distdir)/gnupg.spec
52 echo "$(VERSION)" > $(distdir)/VERSION