# Copyright (c) 2011 FFLAS-FFPACK
# written by Brice Boyer (briceboyer) <boyer.brice@gmail.com>
# adapted from LinBox configuration
#
# ========LICENCE========
# This file is part of the library FFLAS-FFPACK.
#
# FFLAS-FFPACK is free software: you can redistribute it and/or modify
# it under the terms of the  GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library 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
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
# ========LICENCE========
#/


ACLOCAL_AMFLAGS = -I macros

SUBDIRS= autotune fflas-ffpack tests doc benchmarks macros examples tutorials

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = fflas-ffpack.pc

#  include_HEADERS=fflas-ffpack-config.h
#!@todo add examples dir XXX

docs:doc/fflas-ffpack-html/index.html

doc/fflas-ffpack-html/index.html:
	(cd doc; ${MAKE} docs)

docs_dev:doc/fflas-ffpack-dev-html/index.html

doc/fflas-ffpack-dev-html/index.html:
	(cd doc; ${MAKE} docs_dev)

autotune:
	(cd autotune; ${MAKE} autotune)

perfpublisher: benchmarks/perfpublisher tests/perfpublisher

benchmarks/perfpublisher:
	(cd benchmarks; ${MAKE} perfpublisher)

tests/perfpublisher:
	(cd tests; ${MAKE} perfpublisher)

examples:
	(cd examples; ${MAKE} examples)

tutorials:
	(cd tutorials; ${MAKE} tutorials)

benchmarks:
	(cd benchmarks; ${MAKE} benchmarks)

uninstall-hook:
	(test -d "$(includedir)/fflas-ffpack" && rm -rf			\
	       	"$(mandir)/man1" "$(mandir)"				\
	       	"$(includedir)/fflas-ffpack/fflas"			\
	       	"$(includedir)/fflas-ffpack/fflas/fflas_fgemm"		\
	       	"$(includedir)/fflas-ffpack/ffpack"			\
	       	"$(includedir)/fflas-ffpack/field"			\
	       	"$(includedir)/fflas-ffpack/utils"			\
	       	"$(includedir)/fflas-ffpack/paladin"			\
	       	"$(includedir)/fflas-ffpack/interfaces"		        \
	       	"$(includedir)/fflas-ffpack/interfaces/libs"	        \
	       	"$(includedir)/fflas-ffpack/" "$(datarootdir)/" ) ||	\
	       	true

.PHONY:tutorials examples benchmarks autotune

bin_SCRIPTS=fflas-ffpack-config

git:
	git commit -a; git pull; git push

VERSION=2.3.2

#  EXTRA_DIST=incremente-versions

