File: rules

package info (click to toggle)
fortran-stdlib 0.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 34,008 kB
  • sloc: f90: 24,178; ansic: 1,244; cpp: 623; python: 119; makefile: 13
file content (21 lines) | stat: -rwxr-xr-x 488 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f

export DH_VERBOSE=1

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

FLIBDIR=$(shell dh_fortran get_flibdir)
FMODDIR=$(shell dh_fortran get_fmoddir)
export FPM_LDFLAGS=-L$(FLIBDIR)
export FPM_FFLAGS=-I$(FMODDIR)

execute_before_dh_auto_clean:
	-find . -name temp -exec rm -rf {} \;

override_dh_auto_build:
	python3 config/fypp_deployment.py --build 

override_dh_auto_test:
	fpm test --flag -I${FMODDIR}/testdrive --link-flag -L${FLIBDIR}