#!/usr/bin/make -f

export DH_VERBOSE=1
export DH_NO_ORIG_LIBS=1

export FC_DEFAULT=gfortran
export FC_OPTIONAL=flang lfortran


# The magic debhelper  rule
%:
	dh $@ --buildsystem fortran --with fortran


execute_after_dh_auto_clean:
	rm -rf mbuild subprojects/toml-test-1.1.0 subprojects/packagecache/v*.gz subprojects/test-drive


override_dh_auto_test:
	@echo Bypass tests this build. require downloads ?

execute_before_dh_install:
	# to create  pkgconfig file
	meson setup mbuild --prefix=$(CURDIR)/debian/tmp/usr
	meson install -C mbuild

