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 16CFGFLAGS = --enable-gtk-doc --enable-gtk-doc-pdf --enable-gcc-warnings 17 18ifeq ($(.DEFAULT_GOAL),abort-due-to-no-makefile) 19.DEFAULT_GOAL := bootstrap 20endif 21 22autoreconf: 23 autoreconf --install --verbose 24 25bootstrap: autoreconf 26 ./configure $(CFGFLAGS) 27 make 28 29INDENT_SOURCES = `find . -name '*.[ch]' -o -name '*.h.in' | \ 30 grep -v -e /gl/ -e build-aux` 31 32update-copyright-env = UPDATE_COPYRIGHT_HOLDER="Yubico AB" \ 33 UPDATE_COPYRIGHT_USE_INTERVALS=1 34 35local-checks-to-skip = sc_bindtextdomain sc_immutable_NEWS sc_program_name 36local-checks-to-skip += sc_prohibit_strcmp sc_unmarked_diagnostics 37local-checks-to-skip += sc_GPL_version 38 39exclude_file_name_regexp--sc_m4_quote_check = ^gl/m4/ 40exclude_file_name_regexp--sc_makefile_at_at_check = ^maint.mk|gl/Makefile.am 41exclude_file_name_regexp--sc_prohibit_undesirable_word_seq = ^maint.mk 42exclude_file_name_regexp--sc_prohibit_atoi_atof = ^src/u2f-host.c 43exclude_file_name_regexp--sc_space_tab = ^gtk-doc/gtk-doc.make 44exclude_file_name_regexp--sc_trailing_blank = ^u2f-host/cdecode.c|u2f-host/cencode.c|u2f-host/inc/u2f.h|u2f-host/inc/u2f_hid.h 45