File: rules

package info (click to toggle)
wmanager 0.3.1-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 244 kB
  • sloc: cpp: 497; python: 411; perl: 124; makefile: 108; sh: 83
file content (40 lines) | stat: -rwxr-xr-x 990 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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/make -f

# Aim for the top, adapt if anything should break on the buildds.
DEB_BUILD_MAINT_OPTIONS=	hardening=+all
export DEB_BUILD_MAINT_OPTIONS

CXX=		g++
# Use this for QA tests with newer versions of GCC
#CXX=		g++-snapshot

CXXFLAGS_WARN=	-Wall -W -pipe
ifneq (,$(filter werror,$(DEB_BUILD_OPTIONS)))
	CXXFLAGS_WARN+=	-Werror
endif

DEB_LDFLAGS_MAINT_APPEND=	-g -lfltk
STRIP=

export CXX CXXFLAGS_WARN DEB_LDFLAGS_MAINT_APPEND STRIP

include /usr/share/dpkg/default.mk

include /usr/share/debhelper/dh_package_notes/package-notes.mk

override_dh_auto_test:
	# I forgot to add this upstream...
	env PYTHONUNBUFFERED=1 dh_auto_test

override_dh_auto_install:
	dh_auto_install --destdir '$(CURDIR)/debian/wmanager' -- \
		INSTALL_PROGRAM='install -m 755' \
		INSTALL_SCRIPT='install -m 755' \
		INSTALL_DATA='install -m 644'

override_dh_installchangelogs:
	dh_installchangelogs -X HISTORY -X NEWS
	install -m 644 HISTORY debian/wmanager/usr/share/doc/wmanager/NEWS

%:
	dh $@