AUTOMAKE_OPTIONS = foreign
EXTRA_DIST = COPYING INSTALL

if HAVE_DOXYGEN
DOC_DIR = doc
dist-check-doxygen:
else
DOC_DIR =
dist-check-doxygen:
	@echo
	@echo ' ******' You need doxygen installed to make dist.' ******'
	@echo
	@false
endif

SUBDIRS      = src slv2 utils hosts $(DOC_DIR) swig debian
DIST_SUBDIRS = src slv2 utils hosts doc swig debian m4

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = slv2.pc

dist-hook: dist-check-doxygen

docs:
	cd doc && make docs

deb:
	dpkg-buildpackage -sn