| 1 |
#!/usr/bin/make -f |
| 2 |
#export DH_VERBOSE = 1 |
| 3 |
|
| 4 |
|
| 5 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 6 |
|
| 7 |
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic |
| 8 |
export DEB_LDFLAGS_MAINT_APPEND = |
| 9 |
|
| 10 |
include /usr/share/dpkg/pkg-info.mk |
| 11 |
|
| 12 |
export VERSION := v$(DEB_VERSION_UPSTREAM) |
| 13 |
export PREFIX := /usr |
| 14 |
export SYSTEMDUNITDIR := $(shell pkgconf --variable=systemdsystemunitdir systemd) |
| 15 |
|
| 16 |
|
| 17 |
%: |
| 18 |
dh $@ |
| 19 |
|
| 20 |
execute_after_dh_auto_clean: |
| 21 |
rm -rf .cache |
| 22 |
|
| 23 |
override_dh_auto_test: |
| 24 |
# missing go modules |
| 25 |
# go version | grep -qF gcc || HOME=$$PWD go test -v |
| 26 |
|
| 27 |
execute_after_dh_auto_install: |
| 28 |
+$(MAKE) install-initscript DESTDIR=debian/earlyoom |
| 29 |
|
| 30 |
override_dh_installinit: |
| 31 |
dh_installinit --onlyscripts |