#!/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_clean:
	rm -rf mbuild

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