File: rules

package info (click to toggle)
hostname 3.25
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 64 kB
  • sloc: ansic: 404; makefile: 41
file content (17 lines) | stat: -rwxr-xr-x 444 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/dpkg/pkg-info.mk
MYVERSION := $(shell echo '$(DEB_VERSION)' | sed -e 's/\+.*//;s/ubuntu.*$$//;s/build.*$$//')
PRGVERSION := $(shell sed -En '/^#define VERSION "(.*)"/ s//\1/p' hostname.c)

export DEB_BUILD_MAINT_OPTIONS=hardening=+all
CFLAGS += -Wall

%:
	dh $@

execute_before_dh_auto_build:
	[ "$(MYVERSION)" = "$(PRGVERSION)" ] || exit 1