File: rules

package info (click to toggle)
fortran-jonquil 0.3.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 364 kB
  • sloc: f90: 1,175; python: 23; makefile: 21; ansic: 9
file content (33 lines) | stat: -rwxr-xr-x 820 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/make -f

export DH_VERBOSE=1

FMODDIR:=$(shell dh_fortran get_fmoddir)
FLIBDIR:=$(shell dh_fortran get_flibdir)

include /usr/share/dpkg/architecture.mk
PKGFILE=debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/jonquil.pc

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


override_dh_auto_clean:
	rm -rf build subprojects/test-drive subprojects/toml-f

override_dh_auto_configure:
	meson setup build --prefix=$(CURDIR)/debian/tmp/usr

override_dh_auto_build:
	meson compile -C build	

override_dh_auto_test:
	@echo Bypass tests this build. require downloads

override_dh_auto_install:
	meson install -C build
	sed -i -e 's%@FMODDIR@%${FMODDIR}%' $(PKGFILE)
	sed -i -e 's%@FLIBDIR@%${FLIBDIR}%' $(PKGFILE)
	sed -i -e 's%{libdir}%{flibdir}%' $(PKGFILE)
	sed -i -e 's%{includedir}%{fmoddir}%g' $(PKGFILE)