File: rules

package info (click to toggle)
qrupdate 1.1.2-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 592 kB
  • sloc: fortran: 5,031; makefile: 105; sh: 18; perl: 17
file content (26 lines) | stat: -rwxr-xr-x 668 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
#!/usr/bin/make -f

# Needed to compile with gfortran 10, see #957723
DEB_FFLAGS_MAINT_APPEND := -std=legacy

include /usr/share/dpkg/default.mk

%:
	dh $@

override_dh_auto_build:
	$(MAKE) lib FFLAGS="$(FFLAGS)" LDFLAGS="$(LDFLAGS)"
	$(MAKE) solib FFLAGS="$(FFLAGS)" LDFLAGS="$(LDFLAGS)"
	$(MAKE) test FFLAGS="$(FFLAGS)" LDFLAGS="$(LDFLAGS)"

ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
#extract docs from sources
	cat src/*.f | perl debian/get-function-ref.pl > function-reference
endif

override_dh_auto_clean: 
	$(MAKE) clean
	rm -f function-reference

override_dh_auto_install:
	$(MAKE) install DESTDIR=../debian/tmp PREFIX=/usr LIBDIR=lib/$(DEB_HOST_MULTIARCH)