#!/usr/bin/make -f

%:
	dh $@ --no-parallel

export AUTOHEADER = true
execute_after_dh_autoreconf:
	mv autoconf/configure .

override_dh_auto_build:
	dh_auto_build -- RPATH=

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
	SLSH_PATH=. $(MAKE) check
endif

DOCDIR = ./debian/slang-gsl/usr/share/doc/slang-gsl
execute_after_dh_installdeb:
	pandoc $(DOCDIR)/index.html -t markdown -o $(DOCDIR)/README-doc.md
	rm -f $(DOCDIR)/index.html
