Git init
[framework/security/gnupg.git] / Makefile.am
1 # Copyright (C) 1998,1999,2000,2001,2003 Free Software Foundation, Inc.
2 #
3 # This file is part of GnuPG.
4 #
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.
9
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.
14
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
18
19 ## Process this file with automake to produce Makefile.in
20
21 ACLOCAL_AMFLAGS = -I m4
22 DISTCHECK_CONFIGURE_FLAGS = --enable-selinux-support
23 AUTOMAKE_OPTIONS = dist-bzip2 filename-length-max=99
24
25 if CROSS_COMPILING
26 checks =
27 else
28 checks = checks
29 endif
30
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 
34
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.
38 dist-hook:
39         @set -e; \
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; \
46             done ; \
47         done
48         @set -e; \
49         sed -e 's/@pkg_version@/$(VERSION)/g' \
50             $(top_srcdir)/scripts/gnupg.spec.in \
51             > $(distdir)/gnupg.spec
52         echo "$(VERSION)" > $(distdir)/VERSION
53