File: rules

package info (click to toggle)
earlyoom 1.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 396 kB
  • sloc: ansic: 1,039; makefile: 97; sh: 96; python: 11
file content (30 lines) | stat: -rwxr-xr-x 599 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

export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND =

include /usr/share/dpkg/pkg-info.mk

export VERSION := v$(DEB_VERSION_UPSTREAM)
export PREFIX := /usr
export SYSTEMDUNITDIR := /lib/systemd/system


%:
	dh $@

execute_after_dh_auto_clean:
	rm -rf .cache

override_dh_auto_test:
	go version | grep -qF gcc || HOME=$$PWD go test -v

execute_after_dh_auto_install:
	+$(MAKE) install-initscript DESTDIR=debian/earlyoom

override_dh_installinit:
	dh_installinit --onlyscripts