Don't emit the LC_CTYPE-not-set warning more than once.
[pinentry.git] / Makefile.am
1 # Makefile.am
2 # Copyright (C) 2002, 2012, 2015 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 DISTCHECK_CONFIGURE_FLAGS = --disable-pinentry-qt4
24
25 GITLOG_TO_CHANGELOG=gitlog-to-changelog
26
27 EXTRA_DIST = autogen.sh autogen.rc README.GIT ChangeLog-old \
28              build-aux/gitlog-to-changelog \
29              build-aux/git-log-fix build-aux/git-log-footer
30
31 if BUILD_PINENTRY_CURSES
32 pinentry_curses = curses
33 else
34 pinentry_curses =
35 endif
36
37 if BUILD_PINENTRY_TTY
38 pinentry_tty = tty
39 else
40 pinentry_tty =
41 endif
42
43 if BUILD_PINENTRY_GTK_2
44 pinentry_gtk_2 = gtk+-2
45 else
46 pinentry_gtk_2 =
47 endif
48
49 if BUILD_PINENTRY_GNOME_3
50 pinentry_gnome_3 = gnome3
51 else
52 pinentry_gnome_3 =
53 endif
54
55 if BUILD_PINENTRY_QT4
56 pinentry_qt4 = qt4
57 else
58 pinentry_qt4 =
59 endif
60
61 if BUILD_PINENTRY_W32
62 pinentry_w32 = w32
63 else
64 pinentry_w32 =
65 endif
66
67 SUBDIRS = assuan secmem pinentry ${pinentry_curses} ${pinentry_tty} \
68         ${pinentry_gtk_2} ${pinentry_gnome_3} ${pinentry_qt4} \
69         ${pinentry_w32} doc
70
71
72 install-exec-local:
73         @list='$(bin_PROGRAMS)'; for p in $$list; do \
74           echo "  $(SETCAP) cap_ipc_lock+p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
75           $(SETCAP) cap_ipc_lock+p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'` || true; \
76         done
77
78         (cd $(DESTDIR)$(bindir); \
79         rm -f pinentry; \
80         $(LN_S) $(PINENTRY_DEFAULT)$(EXEEXT) pinentry)
81
82 dist-hook: gen-ChangeLog
83         echo "$(VERSION)" > $(distdir)/VERSION
84
85 gen_start_date = 2012-08-08T00:00:00
86 .PHONY: gen-ChangeLog
87 gen-ChangeLog:
88         if test -d $(top_srcdir)/.git; then                             \
89           (cd $(top_srcdir) &&                                          \
90             $(GITLOG_TO_CHANGELOG) --append-dot --tear-off              \
91             --amend=build-aux/git-log-fix                               \
92             --since=$(gen_start_date) ) > $(distdir)/cl-t;              \
93           cat $(top_srcdir)/build-aux/git-log-footer >> $(distdir)/cl-t;\
94           rm -f $(distdir)/ChangeLog;                                   \
95           mv $(distdir)/cl-t $(distdir)/ChangeLog;                      \
96         fi