File: rules

package info (click to toggle)
wmshutdown 1.4-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 140 kB
  • ctags: 22
  • sloc: ansic: 184; makefile: 21
file content (19 lines) | stat: -rwxr-xr-x 499 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

%:
	dh $@ --with autoreconf

ifneq ($(DEB_HOST_ARCH_OS), linux)
override_dh_auto_configure:
	dh_auto_configure -- --with-consolekit
endif

get-orig-source:
	uscan --verbose --force-download --no-symlink
	@if test -e ../wmshutdown-*.download ; then \
		rename -f -v "s/wmshutdown-(.+)\.download/wmshutdown_\1\.orig\.tar\.gz/" \
			../wmshutdown-*.download; \
	fi