File: rules

package info (click to toggle)
pstreams 1.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 464 kB
  • sloc: cpp: 2,219; makefile: 207; sh: 18
file content (22 lines) | stat: -rwxr-xr-x 501 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

%:
	dh $@

override_dh_auto_build:
	$(MAKE) docs
	$(MAKE) TODO
	$(RM) doc/man/man3/deprecated.3
	sed -i -e '/^.SH\ NAME/{n;s/ -1 / \\-1 /g;s/\\&.\s*$$//g;s/<.*>//g}' doc/man/man3/*
	dh_auto_build

override_dh_auto_install:
	$(MAKE) install prefix=/usr DESTDIR=debian/tmp

override_dh_auto_clean:
	dh_auto_clean
	$(RM) pstreams.wout