File: rules

package info (click to toggle)
anacron 2.3-27
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 392 kB
  • sloc: ansic: 2,530; makefile: 129; sh: 65
file content (38 lines) | stat: -rwxr-xr-x 1,019 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
32
33
34
35
36
37
38
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1

# see FEATURE AREAS in dpkg-buildflags(1)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
# package maintainers to append LDFLAGS
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

-include /usr/share/dpkg/architecture.mk
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
  export CC = $(DEB_HOST_GNU_TYPE)-gcc
else
  export CC = gcc
endif

%:
	dh $@

override_dh_auto_install:
	$(MAKE) install PREFIX=debian/anacron MANDIR=debian/anacron/usr/share/man
	install -D -m 644 debian/anacrontab debian/anacron/etc/anacrontab
	install -D -m 644 debian/anacron.timer debian/anacron/lib/systemd/system/anacron.timer

override_dh_installcron:
	dh_installcron
	dh_installcron --name=0anacron

override_dh_installinit:
	dh_installinit --no-start

override_dh_missing:
	dh_missing --fail-missing