Post release version number bump
[pinentry.git] / Makefile.am
1 # Makefile.am
2 # Copyright (C) 2002, 2012 g10 Code GmbH
3 #
4 # This file is part of PINENTRY.
5 #
6 # PINENTRY 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 2 of the License, or
9 # (at your option) any later version.
10 #
11 # PINENTRY 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, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
19
20 ## Process this file with automake to produce Makefile.in
21
22 ACLOCAL_AMFLAGS = -I m4
23 AUTOMAKE_OPTIONS = dist-bzip2 no-dist-gzip
24 #DISTCHECK_CONFIGURE_FLAGS = --disable-pinentry-qt4
25
26 GITLOG_TO_CHANGELOG=gitlog-to-changelog
27
28 EXTRA_DIST = autogen.sh README.GIT ChangeLog-old \
29              build-aux/gitlog-to-changelog \
30              build-aux/git-log-fix build-aux/git-log-footer
31
32 if BUILD_PINENTRY_CURSES
33 pinentry_curses = curses
34 else
35 pinentry_curses =
36 endif
37
38 if BUILD_PINENTRY_GTK
39 pinentry_gtk = gtk
40 else
41 pinentry_gtk =
42 endif
43
44 if BUILD_PINENTRY_GTK_2
45 pinentry_gtk_2 = gtk+-2
46 else
47 pinentry_gtk_2 =
48 endif
49
50 if BUILD_PINENTRY_QT
51 pinentry_qt = qt
52 else
53 pinentry_qt =
54 endif
55
56 if BUILD_PINENTRY_QT4
57 pinentry_qt4 = qt4
58 else
59 pinentry_qt4 =
60 endif
61
62 if BUILD_PINENTRY_W32
63 pinentry_w32 = w32
64 else
65 pinentry_w32 =
66 endif
67
68 SUBDIRS = assuan secmem pinentry ${pinentry_curses} \
69         ${pinentry_gtk} ${pinentry_gtk_2} ${pinentry_qt} ${pinentry_qt4} \
70         ${pinentry_w32} doc
71
72
73 install-exec-local:
74         @list='$(bin_PROGRAMS)'; for p in $$list; do \
75           echo "  $(SETCAP) cap_ipc_lock+p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
76           $(SETCAP) cap_ipc_lock+p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'` || true; \
77         done
78
79         (cd $(DESTDIR)$(bindir); \
80         rm -f pinentry; \
81         $(LN_S) $(PINENTRY_DEFAULT)$(EXEEXT) pinentry)
82
83 dist-hook: gen-ChangeLog
84         echo "$(VERSION)" > $(distdir)/VERSION
85
86 gen_start_date = 2012-08-08T00:00:00
87 .PHONY: gen-ChangeLog
88 gen-ChangeLog:
89         if test -d $(top_srcdir)/.git; then                             \
90           (cd $(top_srcdir) &&                                          \
91             $(GITLOG_TO_CHANGELOG) --append-dot --tear-off              \
92             --amend=build-aux/git-log-fix                               \
93             --since=$(gen_start_date) ) > $(distdir)/cl-t;              \
94           cat $(top_srcdir)/build-aux/git-log-footer >> $(distdir)/cl-t;\
95           rm -f $(distdir)/ChangeLog;                                   \
96           mv $(distdir)/cl-t $(distdir)/ChangeLog;                      \
97         fi