File: rules

package info (click to toggle)
userv 1.2.1~beta4
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 824 kB
  • sloc: ansic: 4,228; lex: 287; sh: 245; makefile: 158
file content (27 lines) | stat: -rwxr-xr-x 575 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
#!/usr/bin/make -f

SHELL=/bin/bash
package=userv

makebuildargs := OPTIMISE= \
 XCFLAGS="$(shell dpkg-buildflags --get CFLAGS)" \
 XCPPFLAGS="$(shell dpkg-buildflags --get CPPFLAGS)" \
 XLDFLAGS="$(shell dpkg-buildflags --get LDFLAGS)"

%:
	dh "$@"

override_dh_auto_configure:
	$(MAKE) -f Makefile.in maintainer-clean
	./autogen.sh
	dh_auto_configure

override_dh_auto_build:
	$(MAKE) $(makebuildargs) all docs

override_dh_auto_install:
	$(MAKE) $(makebuildargs) install install-docs \
		DESTDIR=$(CURDIR)/debian/userv

override_dh_fixperms:
	dh_fixperms -X usr/bin/userv