File: rules

package info (click to toggle)
osptoolkit 4.13.0-1.1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,376 kB
  • sloc: ansic: 42,300; makefile: 265; sh: 49
file content (30 lines) | stat: -rwxr-xr-x 995 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
#!/usr/bin/make -f

export DH_VERBOSE = 1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

version=4.13.0
major=4

%:
	dh $@ --parallel

override_dh_auto_build:
	$(MAKE) build VERSION="$(version)" MAJOR="$(major)" ADDFLAGS="$(addflags)"
	$(MAKE) enroll VERSION="$(version)" MAJOR="$(major)" ADDFLAGS="$(addflags)"
	$(MAKE) test VERSION="$(version)" MAJOR="$(major)" ADDFLAGS="$(addflags)"

override_dh_auto_clean:
	$(MAKE) VERSION="$(version)" MAJOR="$(major)" clean

override_dh_auto_install:
	# Add here commands to install the package into debian/osptoolkit
	$(MAKE) VERSION="$(version)" MAJOR="$(major)" DESTDIR=$(CURDIR)/debian/osptoolkit install-bin

	# Add here commands to install the package into debian/libosptk
	$(MAKE) VERSION="$(version)" MAJOR="$(major)" DESTDIR=$(CURDIR)/debian/libosptk$(major)t64 install-lib

	# Add here commands to install the package into debian/libosptk-dev
	$(MAKE) VERSION="$(version)" MAJOR="$(major)" DESTDIR=$(CURDIR)/debian/libosptk-dev install-dev