Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs
4 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
5 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
6
7 CFLAGS +=-Wall -g -fPIC
8 CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
9
10 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
11 CFLAGS += -O0
12 else
13 CFLAGS += -O2
14 endif
15
16 VERSION=$(shell awk '/^PACKAGE_VERSION/ { print $$2 }' "FS='" configure)
17
18 %:
19 dh $@
20
21 override_dh_auto_configure:
22 dh_auto_configure -- --enable-librsvg --disable-silent-rules --libexecdir=/usr/lib/$(DEB_HOST_MULTIARCH)
23
24 override_dh_auto_build:
25 pod2man --section=1 --release=$(VERSION) --center \
26 "Openbox documentation" debian/gnome-panel-control.pod > \
27 gnome-panel-control.1
28 pod2man --section=1 --release=$(VERSION) --center \
29 "Openbox documentation" debian/gdm-control.pod > \
30 gdm-control.1
31 dh_auto_build
32
33 #override_dh_auto_install:
34 # dh_missing --list-missing
35 # dh_auto_install
36
37 #override_dh_auto_installdocs:
38 # dh_installdocs -A
39
40 override_dh_auto_clean:
41 rm -f openbox.1
42 rm -f gnome-panel-control.1
43 rm -f gdm-control.1
44 dh_auto_clean