forked from trusteddomainproject/OpenDKIM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
67 lines (56 loc) · 2.1 KB
/
Makefile.am
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
# Copyright (c) 2010-2014, The Trusted Domain Project. All rights reserved.
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4
SUBDIRS =
SUBDIRS += libopendkim contrib docs
if VBR
SUBDIRS += libvbr
endif
if RBL
SUBDIRS += librbl
endif
if LUA
SUBDIRS += miltertest
endif
if STATS
SUBDIRS += stats
endif
if REPUTE
SUBDIRS += libut reputation
endif
if REPRRD
SUBDIRS += reprrd
endif
if JANSSON
SUBDIRS += autobuild
endif
SUBDIRS += opendkim
dist_doc_DATA = FEATURES KNOWNBUGS LICENSE LICENSE.Sendmail \
RELEASE_NOTES.Sendmail
dist_noinst_SCRIPTS = libtool
DISTCLEANFILES = opendkim-@[email protected]
# TODO: get configure.ac to generate --enable-{feature} for all
# non-experimental features and substitute it here e.g @SUPPORTED_FEATURES@.
# Perhaps all features would enable a more comprehensive test coverage map
# though.
DISTCHECK_CONFIGURE_FLAGS=--enable-vbr --with-lua --enable-stats --with-odbx --with-db --with-openssl=/usr/local --enable-atps --enable-replace_rules
$(DIST_ARCHIVES): distcheck
$(DIST_ARCHIVES).md5: $(DIST_ARCHIVES)
md5 $? > $@ || md5sum $? > $@
$(DIST_ARCHIVES).sha1: $(DIST_ARCHIVES)
sha1 $? > $@ || sha1sum $? > $@
$(DIST_ARCHIVES).asc: $(DIST_ARCHIVES)
gpg -a -u [email protected] --detach-sign $?
push: $(DIST_ARCHIVES) $(DIST_ARCHIVES).sha1 $(DIST_ARCHIVES).md5 $(DIST_ARCHIVES).asc
@echo "Are you sure you want to tag and release $(DIST_ARCHIVES)? (y/n)"
@read confirm && [ $$confirm = 'y' ]
git tag rel-opendkim-`echo $(VERSION) | sed 's/\./-/g'`
git push --tags
scp $(DIST_ARCHIVES) $(DIST_ARCHIVES).sha1 $(DIST_ARCHIVES).md5 $(DIST_ARCHIVES).asc RELEASE_NOTES cm-msk,[email protected]:/home/frs/project/o/op/opendkim/
dist-hook:
[ -f $(distdir)/libopendkim/dkim.h ] && rm -f $(distdir)/libopendkim/dkim.h
sed -e '/OPENDKIM_LIB_VERSION/s/0x[0-9]*/0x@HEX_VERSION@/' < $(srcdir)/libopendkim/dkim.h > $(distdir)/libopendkim/dkim.h
echo "looking to see if @VERSION@ is in the RELEASE_NOTES"
fgrep @VERSION@ $(srcdir)/RELEASE_NOTES
sed -e 's|\(@VERSION@[ \t]*\)[0-9?]\{4\}\(/[0-9?]\{2\}\)\{2\}|\1'`date +%Y/%m/%d`'|' < $(srcdir)/RELEASE_NOTES > $(distdir)/RELEASE_NOTES
.PHONY: push