1# Copyright (c) 2010-2014, The Trusted Domain Project. All rights reserved. 2 3AUTOMAKE_OPTIONS = foreign 4ACLOCAL_AMFLAGS = -I m4 5 6SUBDIRS = 7SUBDIRS += libopendkim contrib docs 8if VBR 9SUBDIRS += libvbr 10endif 11if RBL 12SUBDIRS += librbl 13endif 14if LUA 15SUBDIRS += miltertest 16endif 17if STATS 18SUBDIRS += stats 19endif 20if REPUTE 21SUBDIRS += libut reputation 22endif 23if REPRRD 24SUBDIRS += reprrd 25endif 26if JANSSON 27SUBDIRS += autobuild 28endif 29SUBDIRS += opendkim 30dist_doc_DATA = FEATURES KNOWNBUGS LICENSE LICENSE.Sendmail \ 31 RELEASE_NOTES.Sendmail 32dist_noinst_SCRIPTS = libtool 33 34DISTCLEANFILES = opendkim-@VERSION@.tar.gz 35 36# TODO: get configure.ac to generate --enable-{feature} for all 37# non-experimental features and substitute it here e.g @SUPPORTED_FEATURES@. 38# Perhaps all features would enable a more comprehensive test coverage map 39# though. 40DISTCHECK_CONFIGURE_FLAGS=--enable-vbr --with-lua --enable-stats --with-odbx --with-db --with-openssl=/usr/local --enable-atps --enable-replace_rules 41 42$(DIST_ARCHIVES): distcheck 43 44$(DIST_ARCHIVES).md5: $(DIST_ARCHIVES) 45 md5 $? > $@ || md5sum $? > $@ 46 47$(DIST_ARCHIVES).sha1: $(DIST_ARCHIVES) 48 sha1 $? > $@ || sha1sum $? > $@ 49 50$(DIST_ARCHIVES).asc: $(DIST_ARCHIVES) 51 gpg -a -u security@opendkim.org --detach-sign $? 52 53push: $(DIST_ARCHIVES) $(DIST_ARCHIVES).sha1 $(DIST_ARCHIVES).md5 $(DIST_ARCHIVES).asc 54 @echo "Are you sure you want to tag and release $(DIST_ARCHIVES)? (y/n)" 55 @read confirm && [ $$confirm = 'y' ] 56 git tag rel-opendkim-`echo $(VERSION) | sed 's/\./-/g'` 57 git push --tags 58 scp $(DIST_ARCHIVES) $(DIST_ARCHIVES).sha1 $(DIST_ARCHIVES).md5 $(DIST_ARCHIVES).asc RELEASE_NOTES cm-msk,opendkim@frs.sourceforge.net:/home/frs/project/o/op/opendkim/ 59 60dist-hook: 61 [ -f $(distdir)/libopendkim/dkim.h ] && rm -f $(distdir)/libopendkim/dkim.h 62 sed -e '/OPENDKIM_LIB_VERSION/s/0x[0-9]*/0x@HEX_VERSION@/' < $(srcdir)/libopendkim/dkim.h > $(distdir)/libopendkim/dkim.h 63 echo "looking to see if @VERSION@ is in the RELEASE_NOTES" 64 fgrep @VERSION@ $(srcdir)/RELEASE_NOTES 65 sed -e 's|\(@VERSION@[ \t]*\)[0-9?]\{4\}\(/[0-9?]\{2\}\)\{2\}|\1'`date +%Y/%m/%d`'|' < $(srcdir)/RELEASE_NOTES > $(distdir)/RELEASE_NOTES 66 67.PHONY: push 68