1# Copyright (C) 2013-2015 Yubico AB 2# 3# This program is free software; you can redistribute it and/or modify it 4# under the terms of the GNU Lesser General Public License as published by 5# the Free Software Foundation; either version 2.1, or (at your option) 6# any later version. 7# 8# This program is distributed in the hope that it will be useful, but 9# WITHOUT ANY WARRANTY; without even the implied warranty of 10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser 11# General Public License for more details. 12# 13# You should have received a copy of the GNU Lesser General Public License 14# along with this program; if not, see <http://www.gnu.org/licenses/>. 15 16SUBDIRS = gl u2f-host src tests gtk-doc 17 18ACLOCAL_AMFLAGS = -I m4 -I gl/m4 19 20DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc 21 22EXTRA_DIST = BLURB cfg.mk macosx.mk windows.mk COPYING.LGPLv2 23 24EXTRA_DIST += doc/Mode_switch_YubiKey.adoc 25 26EXTRA_DIST += 70-u2f.rules 27udevrulesdir = @udevrulesdir@ 28dist_udevrules_DATA = $(udevrulesfile) 29 30# Release 31 32ChangeLog: 33 cd $(srcdir) && git2cl > ChangeLog 34 35release: my-release 36my-release: 37 @if test ! -d "$(YUBICO_WWW_REPO)"; then \ 38 echo "www repo not found!"; \ 39 echo "Make sure that YUBICO_WWW_REPO is set"; \ 40 exit 1; \ 41 fi 42 @head -3 $(srcdir)/NEWS | \ 43 grep -q "Version $(VERSION) .released `date -I`" || \ 44 (echo 'error: Update date/version in $(srcdir)/NEWS'; exit 1) 45 rm -f $(srcdir)/ChangeLog 46 make ChangeLog syntax-check distcheck 47 make -f windows.mk VERSION=$(VERSION) 48 gpg --detach-sign $(PACKAGE)-$(VERSION).tar.xz 49 gpg --detach-sign $(PACKAGE)-$(VERSION)-win32.zip 50 gpg --detach-sign $(PACKAGE)-$(VERSION)-win64.zip 51 gpg --verify $(PACKAGE)-$(VERSION).tar.xz.sig 52 gpg --verify $(PACKAGE)-$(VERSION)-win32.zip.sig 53 gpg --verify $(PACKAGE)-$(VERSION)-win64.zip.sig 54 cd $(srcdir) && git push 55 cd $(srcdir) && git tag -s -m "$(PACKAGE) $(VERSION)" $(PACKAGE)-$(VERSION) 56 cd $(srcdir) && git push --tags 57 $(YUBICO_WWW_REPO)/publish $(PACKAGE) $(VERSION) $(PACKAGE)-$(VERSION).tar.xz* 58 $(YUBICO_WWW_REPO)/publish $(PACKAGE) $(VERSION) $(PACKAGE)-$(VERSION)-win32.zip* 59 $(YUBICO_WWW_REPO)/publish $(PACKAGE) $(VERSION) $(PACKAGE)-$(VERSION)-win64.zip* 60 $(HELP2ADOC) -e src/u2f-host -n "Yubico Universal 2nd Factor (U2F) Host Tool" > u2f-host.1.txt 61 $(YUBICO_WWW_REPO)/save-mans $(PACKAGE) u2f-host.1.txt 62