File: rules

package info (click to toggle)
profnet 1.0.22-6
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,960 kB
  • sloc: fortran: 12,103; makefile: 200; perl: 124; sh: 20; csh: 6
file content (31 lines) | stat: -rwxr-xr-x 1,163 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
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# Somehow the hardening options are not propagated
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_build:
	make patch
	make CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"

override_dh_auto_install:
	$(MAKE) DESTDIR=$(CURDIR)/debian/profnet-bval prefix=/usr install-bval
	$(MAKE) DESTDIR=$(CURDIR)/debian/profnet-chop prefix=/usr install-chop
	$(MAKE) DESTDIR=$(CURDIR)/debian/profnet-con prefix=/usr install-con
	$(MAKE) DESTDIR=$(CURDIR)/debian/profnet-isis prefix=/usr install-isis
	$(MAKE) DESTDIR=$(CURDIR)/debian/profnet-md prefix=/usr install-md
	$(MAKE) DESTDIR=$(CURDIR)/debian/profnet-norsnet prefix=/usr install-norsnet
	$(MAKE) DESTDIR=$(CURDIR)/debian/profnet-prof prefix=/usr install-prof
	$(MAKE) DESTDIR=$(CURDIR)/debian/profnet-snapfun prefix=/usr install-snapfun
	$(MAKE) DESTDIR=$(CURDIR)/debian/profphd-net prefix=/usr install-phd

override_dh_shlibdeps:
	dh_shlibdeps
	# sneak in common part of package descriptions
	for i in $$(sed -n '/^Package: / s///p' debian/control); do \
		cat debian/Description >> debian/$$i.substvars; \
	done;