File: rules

package info (click to toggle)
tcpflow 1.4.4%2Brepack1-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,560 kB
  • ctags: 4,525
  • sloc: cpp: 17,278; python: 4,221; sh: 1,413; xml: 769; ansic: 355; makefile: 287
file content (51 lines) | stat: -rwxr-xr-x 1,305 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
#!/usr/bin/make -f

%:
	dh $@

override_dh_strip:
	dh_strip --dbg-package=tcpflow-dbg


export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)

BUILDDIR     := $(CURDIR)/debian/build
BUILDDIR_NOX := $(CURDIR)/debian/build-nox

conf_opts :=						\
	--build=$(DEB_BUILD_GNU_TYPE)			\
	--prefix=/usr					\
	--includedir=/usr/include			\
	--mandir=/usr/share/man				\
	--infodir=/usr/share/info			\
	--sysconfdir=/etc				\
	--localstatedir=/var				\
	--libdir=/usr/lib/$(DEB_HOST_GNU_TYPE)		\
	--libexecdir=/usr/lib/$(DEB_HOST_GNU_TYPE)	\
	--disable-maintainer-mode			\
	--disable-dependency-tracking


override_dh_auto_configure:
	autoreconf -f -i
	mkdir -p $(BUILDDIR)
	cd $(BUILDDIR); ../../configure $(conf_opts)
	mkdir -p $(BUILDDIR_NOX)
	cd $(BUILDDIR_NOX);  ./../../configure $(conf_opts) --enable-cairo=false

override_dh_auto_build:
	dh_auto_build -a -- -C $(BUILDDIR_NOX)/src
	dh_auto_build -a -- -C $(BUILDDIR)

override_dh_auto_clean:
	dh_auto_clean
	rm -rf $(BUILDDIR) $(BUILDDIR_NOX) \
		config.log \
		config.hin \
		configure \
		src/Makefile.in

override_dh_auto_install:
	$(MAKE) -C $(BUILDDIR) install DESTDIR=$(BUILDDIR).inst
	$(MAKE) -C $(BUILDDIR_NOX) install DESTDIR=$(BUILDDIR_NOX).inst