blob: 7923264f467bea6773c6d8a06cbc3b85032602dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
# This file is part of Mailfromd.
# Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011 Sergey
# Poznyakoff
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
if PMULT_COND
PMULT_DIR = pmult
endif
SUBDIRS = \
gnu\
mflib\
lib\
gacopyz\
src\
mtasim\
$(PMULT_DIR)\
elisp\
po\
etc\
doc\
tests
ACLOCAL_AMFLAGS = -I m4 -I am
EXTRA_DIST = git-describe
distuninstallcheck_listfiles = find . -type f -not -name 'mailfromd.mf' -print
.PHONY: git-describe
git-describe:
$(AM_V_GEN)if test -d .git; then \
dirty=`git diff-index --name-only HEAD 2>/dev/null` || dirty=;\
test -n "$$dirty" && dirty="-dirty"; \
descr=`git describe`; \
echo $${descr}$$dirty > git-describe; \
fi
dist-hook: ChangeLog git-describe
@PATCHLEV=`echo "$(PACKAGE_VERSION)" | \
sed -r "s/[0-9]+\.[0-9]+\.?//"`; \
if test $${PATCHLEV:-0} -lt 50; then \
if grep -q FIXME NEWS; then \
echo >&2 "NEWS file contains FIXMEs"; \
exit 1; \
fi; \
fi
alpha:
$(MAKE) dist distdir=$(PACKAGE)-$(VERSION)-`date +"%Y%m%d"`
alphacheck:
$(MAKE) distcheck distdir=$(PACKAGE)-$(VERSION)-`date +"%Y%m%d"`
# Define the following variables in order to use the ChangeLog rule below:
# prev_change_log [optional] Name of the previous ChangeLog file.
# gen_start_date [optional] Start ChangeLog from this date.
# changelog_dir [mandatory] Directory where to create ChangeLog
gen_start_date = 2009-03-13
prev_change_log = ChangeLog.svn
changelog_dir = .
.PHONY: ChangeLog
ChangeLog:
$(AM_V_GEN)if test -d .git; then \
cmd=$(top_srcdir)/build-aux/gitlog-to-changelog; \
if test -n "$(gen_start_date)"; then \
cmd="$$cmd --since=\"$(gen_start_date)\""; \
fi; \
$$cmd --format='%s%n%n%b%n' | \
sed '/<unknown>$$/d' | fmt -s > $(changelog_dir)/cl-t; \
if test -n "$(prev_change_log)" && test -f "$(prev_change_log)"; \
then \
echo "" >> $(changelog_dir)/cl-t; \
cat "$(prev_change_log)" | \
sed '/^Local Variables:/,/^End:/d' >> $(changelog_dir)/cl-t; \
fi; \
echo "Local Variables:" >> $(changelog_dir)/cl-t; \
echo "mode: change-log" >> $(changelog_dir)/cl-t; \
echo "version-control: never" >> $(changelog_dir)/cl-t; \
echo "buffer-read-only: t" >> $(changelog_dir)/cl-t; \
echo "End:" >> $(changelog_dir)/cl-t; \
rm -f $(changelog_dir)/ChangeLog; \
mv $(changelog_dir)/cl-t $(changelog_dir)/ChangeLog; \
fi
|