1# This file is part of pam-modules.
2# Copyright (C) 2001, 2006, 2008-2012, 2014-2015, 2018 Sergey Poznyakoff
3#
4# This program is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation; either version 3, or (at your option)
7# any later version.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License along
15# with this program.  If not, see <http://www.gnu.org/licenses/>.
16
17AUTOMAKE_OPTIONS = gnits 1.8
18ACLOCAL_AMFLAGS = -I m4 -I imprimatur
19
20if PAM_COND_FSHADOW
21  FSHADOW_DIR=pam_fshadow
22endif
23if PAM_COND_REGEX
24  REGEX_DIR=pam_regex
25endif
26if PAM_COND_LOG
27  LOG_DIR=pam_log
28endif
29if PAM_COND_LDAPHOME
30  LDAPHOME_DIR=pam_ldaphome
31endif
32if PAM_COND_UMOTD
33  UMOTD_DIR=pam_umotd
34endif
35if PAM_COND_GROUPMEMBER
36  GROUPMEMBER_DIR=pam_groupmember
37endif
38SUBDIRS = \
39 imprimatur\
40 doc\
41 examples\
42 lib\
43 $(FSHADOW_DIR)\
44 $(REGEX_DIR)\
45 $(LOG_DIR)\
46 pam_sql\
47 $(LDAPHOME_DIR)\
48 $(UMOTD_DIR)\
49 $(GROUPMEMBER_DIR)\
50 pamck
51
52EXTRA_DIST=ChangeLog.svn
53
54#  Name of the previous ChangeLog file.
55prev_change_log = ChangeLog.svn
56#  Start Git ChangeLog from this date.
57gen_start_date = 2012-05-13
58
59.PHONY: ChangeLog
60ChangeLog:
61	$(AM_V_GEN)if test -d .git; then                                     \
62          git log --pretty='format:%ct  %an  <%ae>%n%n%s%n%n%b%n' |          \
63	    awk -f $(top_srcdir)/git2chg.awk                                 \
64              -vsince="$(gen_start_date)" -vappend="$(prev_change_log)"      \
65              > ChangeLog.tmp;                                               \
66          cmp ChangeLog ChangeLog.tmp > /dev/null 2>&1 ||                    \
67            mv ChangeLog.tmp ChangeLog;                                      \
68          rm -f ChangeLog.tmp;                                               \
69	fi
70