doc: Remove some stuff for the very incomplete instguide.
[gnupg.git] / Makefile.am
1 # Makefile.am - main makefile for GnuPG
2 #       Copyright (C) 2001, 2004, 2010 Free Software Foundation, Inc.
3 #
4 # This file is part of GnuPG.
5 #
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.
10 #
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.
15 #
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/>.
18
19 ## Process this file with automake to produce Makefile.in
20
21 ACLOCAL_AMFLAGS = -I m4 -I gl/m4
22 DISTCHECK_CONFIGURE_FLAGS = --enable-symcryptrun --enable-mailto --enable-gpgtar
23
24 GITLOG_TO_CHANGELOG=gitlog-to-changelog
25
26 EXTRA_DIST = build-aux/config.rpath build-aux/potomo autogen.sh autogen.rc
27              ChangeLog-2011 po/ChangeLog-2011 build-aux/ChangeLog-2011 \
28              VERSION build-aux/gitlog-to-changelog \
29              build-aux/git-log-fix build-aux/git-log-footer \
30              build-aux/speedo.mk README.GIT
31
32 DISTCLEANFILES = g10defs.h
33
34 if BUILD_GPGSM
35 kbx = kbx
36 else
37 kbx =
38 endif
39
40
41 if BUILD_GPG
42 gpg = g10
43 else
44 gpg =
45 endif
46 if BUILD_GPGSM
47 sm = sm
48 else
49 sm =
50 endif
51 if BUILD_AGENT
52 agent = agent
53 else
54 agent =
55 endif
56 if BUILD_SCDAEMON
57 scd = scd
58 else
59 scd =
60 endif
61 if BUILD_G13
62 g13 = g13
63 else
64 g13 =
65 endif
66 if BUILD_DIRMNGR
67 dirmngr = dirmngr
68 else
69 dirmngr =
70 endif
71 if BUILD_TOOLS
72 tools = tools
73 else
74 tools =
75 endif
76 if BUILD_DOC
77 doc = doc
78 else
79 doc =
80 endif
81
82 if RUN_TESTS
83 tests = tests
84 else
85 tests =
86 endif
87
88 SUBDIRS = m4 gl common ${kbx} \
89           ${gpg} ${sm} ${agent} ${scd} ${g13} ${dirmngr} \
90           ${tools} po ${doc} ${tests}
91
92 dist_doc_DATA = README
93
94
95 dist-hook: gen-ChangeLog
96
97 if HAVE_W32_SYSTEM
98 install-data-hook:
99         set -e; \
100         for i in $$($(top_srcdir)/build-aux/potomo \
101                      --get-linguas $(top_srcdir)/po) ; do \
102            $(MKDIR_P) "$(DESTDIR)$(localedir)/$$i/LC_MESSAGES" || true; \
103            rm -f "$(DESTDIR)$(localedir)/$$i/LC_MESSAGES/gnupg2.mo" \
104                                                  2>/dev/null || true; \
105            $(top_srcdir)/build-aux/potomo $(top_srcdir)/po/$$i.po \
106               "$(DESTDIR)$(localedir)/$$i/LC_MESSAGES/gnupg2.mo" ; \
107         done
108 endif
109
110
111 gen_start_date = 2011-12-01T06:00:00
112 .PHONY: gen-ChangeLog
113 gen-ChangeLog:
114         if test -d $(top_srcdir)/.git; then                             \
115           (cd $(top_srcdir) &&                                          \
116             $(GITLOG_TO_CHANGELOG) --append-dot --tear-off              \
117             --amend=build-aux/git-log-fix                               \
118             --since=$(gen_start_date) ) > $(distdir)/cl-t;              \
119           cat $(top_srcdir)/build-aux/git-log-footer >> $(distdir)/cl-t;  \
120           rm -f $(distdir)/ChangeLog;                                   \
121           mv $(distdir)/cl-t $(distdir)/ChangeLog;                      \
122         fi
123
124
125 stowinstall:
126         $(MAKE) $(AM_MAKEFLAGS) install prefix=/usr/local/stow/gnupg