File: rules

package info (click to toggle)
bluefish 2.2.6-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 28,096 kB
  • ctags: 5,830
  • sloc: xml: 150,791; ansic: 59,107; sh: 11,453; python: 6,337; makefile: 1,034; sed: 16
file content (52 lines) | stat: -rwxr-xr-x 1,480 bytes parent folder | download | duplicates (3)
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
45
46
47
48
49
50
51
52
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
#
# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1

PACKAGE := bluefish

DEB_VENDOR := $(shell dpkg-vendor --query vendor)

CPPFLAGS ?= $(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS   ?= $(shell dpkg-buildflags --get CFLAGS)
LDFLAGS  ?= $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed

%:
	dh $@ --with autoreconf,python2 --parallel

override_dh_autoreconf:
	/bin/bash $(CURDIR)/autogen.sh -c

override_dh_auto_test:
override_dh_auto_configure: configure
	dh_auto_configure -- \
	    --with-icon-path=\$${prefix}/share/pixmaps \
	    --with-theme-path=\$${prefix}/share/icons/hicolor \
	    --with-freedesktop_org-menu=\$${prefix}/share/applications \
	    --with-freedesktop_org-mime=\$${prefix}/share/mime \
	    --with-xml-catalog=\$${sysconfdir}/xml/catalog \
	    --disable-static \
	    --disable-xml-catalog-update \
	    --disable-update-databases \
	    CPPFLAGS="$(CPPFLAGS)" \
	    CFLAGS="$(CFLAGS)" \
	    LDFLAGS="$(LDFLAGS)"

override_dh_install:
	dh_install --list-missing

override_dh_strip:
	dh_strip --dbg-package=$(PACKAGE)-dbg

override_dh_python2:
	dh_python2 -pbluefish-data usr/share/bluefish/plugins/zencoding/ usr/share/bluefish/lipsum/

override_dh_gencontrol:
ifneq (,$(filter Ubuntu,$(DEB_VENDOR)))
	dh_gencontrol -- -Vvendor:Browser='firefox | abrowser'
else
	dh_gencontrol -- -Vvendor:Browser='iceweasel | iceape'
endif