File: rules

package info (click to toggle)
openbox 3.6.1-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,456 kB
  • sloc: ansic: 36,894; sh: 4,484; xml: 1,358; makefile: 607; python: 594; sed: 16
file content (44 lines) | stat: -rwxr-xr-x 1,125 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
41
42
43
44
#!/usr/bin/make -f

export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

CFLAGS +=-Wall -g -fPIC
CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
        CFLAGS += -O0
else
        CFLAGS += -O2
endif

VERSION=$(shell awk '/^PACKAGE_VERSION/ { print $$2 }' "FS='" configure)

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --enable-librsvg --disable-silent-rules --libexecdir=/usr/lib/$(DEB_HOST_MULTIARCH)

override_dh_auto_build:
	pod2man --section=1 --release=$(VERSION) --center \
		"Openbox documentation" debian/gnome-panel-control.pod > \
		gnome-panel-control.1
	pod2man --section=1 --release=$(VERSION) --center \
		"Openbox documentation" debian/gdm-control.pod > \
		gdm-control.1
	dh_auto_build

#override_dh_auto_install:
#	dh_missing --list-missing
#	dh_auto_install

#override_dh_auto_installdocs:
#	dh_installdocs -A

override_dh_auto_clean:
	rm -f openbox.1
	rm -f gnome-panel-control.1
	rm -f gdm-control.1	
	dh_auto_clean