File: rules

package info (click to toggle)
swift-im 2.0+dev6-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 15,456 kB
  • ctags: 15,521
  • sloc: cpp: 86,078; python: 1,431; xml: 546; sh: 263; ansic: 54; makefile: 42
file content (53 lines) | stat: -rwxr-xr-x 1,547 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
45
46
47
48
49
50
51
52
53
#!/usr/bin/make -f

#export DH_VERBOSE=1
export PYTHONDONTWRITEBYTECODE=1

SCONS_FLAGS=V=1 optimize=1 debug=1 allow_warnings=1 swiften_dll=1 qt=/usr/share/qt4 docbook_xsl=/usr/share/xml/docbook/stylesheet/docbook-xsl docbook_xml=/usr/share/xml/docbook/schema/dtd/4.5 linkflags="$(shell dpkg-buildflags --get LDFLAGS)" ccflags="$(shell dpkg-buildflags --get CPPFLAGS) $(shell dpkg-buildflags --get CFLAGS)"

clean: 
	dh_testdir
	dh_clean
	scons $(SCONS_FLAGS) $(SCONS_EXTRA_FLAGS) SWIFT_INSTALLDIR=$(CURDIR)/debian/tmp/usr SWIFTEN_INSTALLDIR=$(CURDIR)/debian/tmp/usr -c
	-rm -rf .scon*
	-rm -rf config.log

configure:

build: configure
	dh_testdir
	scons $(SCONS_FLAGS) $(SCONS_EXTRA_FLAGS) Swift Swiften

install: build
	dh_testroot
	dh_prep  
	dh_installdirs
	scons $(SCONS_FLAGS) $(SCONS_EXTRA_FLAGS) SWIFT_INSTALLDIR=$(CURDIR)/debian/tmp/usr SWIFTEN_INSTALLDIR=$(CURDIR)/debian/tmp/usr $(CURDIR)/debian/tmp
	mkdir -p $(CURDIR)/debian/tmp/usr/share/lintian/overrides
	cp debian/binary-overrides/* $(CURDIR)/debian/tmp/usr/share/lintian/overrides/

binary-indep: install
binary-arch: install
	dh_testdir
	dh_testroot
	dh_install --sourcedir=debian/tmp
	dh_installchangelogs 
	dh_installdocs
	dh_installmenu
	dh_installman -a
	dh_link
	dh_strip --dbg-package=swift-im-dbg
	dh_compress
	dh_fixperms
	dh_makeshlibs
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch

build-arch: build
build-indep: build
.PHONY: build clean binary-indep binary-arch binary install configure build-arch build-indep